阅读背景:

在ASP.Net MVC视图中显示/隐藏链接

来源:互联网 

I'm trying to figure out how to show/hide links for users based on their roles. I know how to set the authorize attribute for an action method, but I'm having trouble making links show hide in a view if the user is say, an admin or a manager in my roles database.I'm trying to figure out how to show/hide links




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: