Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I have a master page and some content page, i have some common server control like save, edit, cancel button in the master page,

I have some user say user1, user2.. when the user1 logged in then the save button is enable and edit & cancel button is disable, when user2 is logged in then all button is enable.

how can i control this?
Posted

Once the user is logged in, you have the full profile access of the user. You know the access priviledges of the user.

Based on this priviledge values, set the enable properties of various button. You can set them in MasterPage once you get the user profile in content page/Master page. Try!
 
Share this answer
 
Comments
Md. Mahfujul 30-Dec-10 1:19am    
What is the code for access privileges of the user in c#.
Sandeep Mewara 30-Dec-10 1:35am    
What code? You define the access priviledge in your application. You fetch it and then you use it.
Md. Mahfujul 30-Dec-10 1:51am    
Please give a link related this topics.
Based on this priviledge values, set the enable properties of various button as Edit, save, cancel and delete.

the same thing can be set it up in the master page also.
 
Share this answer
 
Comments
Md. Mahfujul 30-Dec-10 1:17am    
please give a link were i can get some information about this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900