Click here to Skip to main content
15,921,941 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:

I want to create one user with only viewing permissions.

And so i want to disable all the other buttons except search button.

Is it possible.?
visnumca123 17-Jan-12 6:43am    
need to eloborate the question like how you are doing with master pages or in MVC style
angel94 18-Jan-12 0:50am    
In Master page and also in other pages after login.
By default it will goto Default.aspx. page where the user able to search
edit and delete the contents in User control.

So i just want to give only view permission. So i want to disable other buttons except Search button.


1.Assign Role admin and viewer(based up on your requirement you can increase the role.

2.For Create the new user, select the role. So For each user have one role_id in User table.

3.In Login Page if user click Login Button, select the roleid from usermaster from User table and assigned into session variable.

4.Based up on the this session variable you can visible / disable false for Buttons .

Here i m explained simple things.I think this may help you.
Share this answer
angel94 18-Jan-12 1:29am    
Will this effect other users? I mean i want to assign view permissions only for one particular shouldnot effect my default page for other users
Share this answer

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