Click here to Skip to main content
16,018,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hey ,
in my controller

SQL
[Authorize(Roles = "User")]
   public ActionResult Index()
   {
       return View();
   }

   }



and my .cshtml





@RenderBody()


if i trigger Index action then show the Role based menu


so please help ...
Posted
Comments
Sebastian T Xavier 6-Dec-13 6:47am    
what is the question?
sunilgurav241 6-Dec-13 6:57am    
i want hide/show menu on user role ..

1 solution

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