Click here to Skip to main content
15,894,896 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
How to change master page menu dynamically in asp.net using c#.

I am using only one master page in my web application. but i am set different menu to different user login. e.g. Doctor,Patient,Practice etc.

Patient set different menu............
Doctor set different menu............
Practice set different menu............but used same master page.

it is possible please reply me.

Thanks in advance.
Posted

Yes, menus can be displayed by roles, if you have roles set up correctly you can set all the menu items in the master page and the roles will hide or show the correct

here's a few links

VB
membership : http://msdn.microsoft.com/en-us/library/ff648345.aspx

roles : http://msdn.microsoft.com/en-us/library/ff647401.aspx

http://weblogs.asp.net/scottgu/pages/Recipe_3A00_-Implementing-Role_2D00_Based-Security-with-ASP.NET-2.0-using-Windows-Authentication-and-SQL-Server.aspx

sitemap : http://msdn.microsoft.com/en-us/library/system.web.sitemap.aspx
 
Share this answer
 
You can check following links for similar kind of work.

http://msdn.microsoft.com/en-us/library/aa581781.aspx[^]
 
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