Developer forum

Forum » Development » Hide Settings in Modules (Edit page)

Hide Settings in Modules (Edit page)


Reply

Hi Guys,

 

How can I get the "username" of the current user that is log in into Dynamic Web? So I can Hide text boxes from others than Administrator.

 

in other words:

 

In the MyModule_Edit.aspx.cs how can I get the current username?

 

:)


Replies

 
Nicolai Høeg Pedersen
Reply
bra@communikanten.dk wrote:

Hi Guys,

 

How can I get the "username" of the current user that is log in into Dynamic Web? So I can Hide text boxes from others than Administrator.

 

in other words:

 

In the MyModule_Edit.aspx.cs how can I get the current username?

 

:)

Dim

usr As Dynamicweb.Backend.User = Dynamicweb.Backend.User.CurrentIf usr.Type < 4 Then 'Its an administrator

 

'Do crazy stuff

 

 

End If
 

 

 
Reply

mange tak Nicolai :)


 

You must be logged in to post in the forum