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

Rupali ShindePosted Dec 15, 2015, 2:00 AM
Ramesh MaruthiPosted Oct 7, 2014, 10:44 AM
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
Renish PatelPosted Oct 7, 2014, 8:26 AM
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
Abhishek KumarPosted Oct 7, 2014, 8:21 AM
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