how to hide or invisible sub menu from menu strip in master page in ASP.net and C#?
.
i have menu strip, so admin can view all menus and sub-menus,
another one is user, but he/she can't view all sub-menus from menu,
so how can i prevent user to prohibit from this ??
Loading


Abhishek KumarRank #510 · 4.8K reputationPosted Oct 7, 2014, 4:21 AM EDT
You can use role based implementation for the menus.
Here is a very nice article, please follow the same.
http://www.c-sharpcorner.com/UploadFile/dacca2/enable-disable-sitemap-menu-item-based-on-role-in-Asp-Net/
Please let me know if you want more info on this.
Abhishek
Renish Patel160 reputationPosted Oct 7, 2014, 4:26 AM EDT
I share nice link for your reference,Please follow it.
http://forums.asp.net/t/1355104.aspx?How+Can+I+Hide+a+menu+Item+in+a+masterPage
Please let me know if you need more info regarding it.
Regards,
Renish
Ramesh MaruthiRank #937 · 2.2K reputationPosted Oct 7, 2014, 6:44 AM EDT
http://weblogs.asp.net/jongalloway//asp-net-menu-and-sitemap-security-trimming-plus-a-trick-for-when-your-menu-and-security-don-t-match-up
Rupali ShindeRank #539 · 4.5K reputationPosted Dec 14, 2015, 9:00 PM EST