forum.venkateswarlu.net
      Register      Login
How to hide asp:menu items based on ROLE?

2 replies to this topic

Madhuri Gattamaneni #1
Member
18 Points
Posted on 10 Jan 2014 12:16 AM IST Hi,
How to hide some of the menu items based on the user roles?                                                                                                                                                                                                                                                                                          
 
ASP.NET     968 views     Reply to this topic
Kalyan Suman #2
Member
150 Points
Replied on 27 Oct 2014 08:07 PM IST

When user  login firstcatch the role regarding that use then put codition in master page

 u have to create dynamic menu then only it is possible in asp.net

so dependes upon role u can show menus

--------------------

COming to MVC u can change role wise menu in layoutpage.cshtml

 
Reply to this topic
Kalyan Suman #3
Member
150 Points
Replied on 11 Dec 2014 01:37 PM IST

first uhave to bind menu using C# code then based on roles u can change the menu


same thing in MVC layout page put if condition based on roles u can change menu

 
Reply to this topic