Click here to Skip to main content
15,898,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hello every one..
i need to create a login page in which after login it will check for user previledge and if the user is normal user it will show a menu strip with 5 menu item or if the user is admin it will show the menu with 6 menu items on it.

please help me with this ...
thanx in advance.
Posted
Comments
Nandakishore G N 8-Oct-12 6:42am    
ok..ishan..wer are u storing the items required for creating menu..
[no name] 8-Oct-12 7:17am    
i havent stored them. i have created a html menu strip. do i have to change it to asp own menu control. suggest me some easiest way..

Hi,

You can implement this senario as below.

1. Create 2 different control(one with 5 menu item and the other with 6menu item) for normal and admin user. Add control dynamically after checking the access level of the user.

2. Add menu item into master page and Show and hide extra menu item in html according to the logon user. You can save user type into session object and will be validated on every request.

Hope this will help you.
 
Share this answer
 
v2

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