HiEveryone!!! I'm using Master page in my website.... When the user logged in, the asp menu button of the master page should be enabled or disabled according to the user permission.... How to do this? Plz Reply!!!!!!!!
A:
Declare a public method in the code behind of your master page which will load user permissions and enable or disable menu button.
In Master Page code behind.
Public void EnableMenuBar() {
//.... Load user permissions here.
//.... here make menu bar enable or disable.
}
Then make this call in the end of your default constructor for your master page.
S M Kamran
2009-10-06 04:48:17
I tried... But, can't see any button properties which I used in master page
Nila
2009-10-06 04:51:11
Thank U! Permissions is just the particular user is enabled for some feature.. That's it.. I just want to access master page controls. But, I can't use it..
Nila
2009-10-06 05:43:28
A:
In master page Page_Load event check if user logged in then enable or disable menu button according to the user permission.
Himadri
2009-10-06 04:52:27
A:
Thank U Everybody! I found the solution for it..... Code: Menu1.Items[3].Enabled=False
Nila
2009-10-07 10:26:49