ASP.NET MVC 5 Customise Bootstrap navbar based on User Role -


i'm using asp.net mvc 5 built in authentication methods. show , hide links (in menu navbar) based on role user in.

has acheived this?

where starting point?

just wrap links in:

@if (user.isinrole("somerole")) {     ... } 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -