Click here to Skip to main content
15,898,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For my asp.net Web application i want to hide certain menu item during run time as per logined user.is it possible?


Thanks & Regards
Posted
Updated 30-Dec-10 19:36pm
v3

You can remove that menuitem, which you dont need to show, later you can add it when require.
Have a look to the Link
 
Share this answer
 
Comments
Sandeep Mewara 31-Dec-10 2:02am    
Comment from OP:
I want to hide that menuitem during runtime as per the logined user.
Menu items are set in master page using tag.
Are you adding the Menu items manually or from database? If database then you can bind the data(with filter based on login) with menu control so appropriate menu will be hidden.

Building a Database Driven Hierarchical Menu using ASP.NET 2.0[^]

Populating Menu Control in ASP.NET 2.0 - using different data sources[^]
 
Share this answer
 
I want to hide that menuitem during runtime as per the logined user.
Menu items are set in master page using
  • tag.
 
Share this answer
 
Comments
Sandeep Mewara 31-Dec-10 2:03am    
Not an answer. Use 'Comment' feature to respond back an answer. That would even notify the answerer via an email.
Vigneshb6 31-Dec-10 2:11am    
Use panels for all the li's and for Certain users make the panel visible false. I think this will work for u.

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