阅读背景:

如何在ASP.NET 3.5 MVC应用程序中将菜单项动态添加到母版页

来源:互联网 

I want to dynamically add menuitems to my master page based on membership security login role. From what I've read RenderAction in the master page html could perhaps do this. Since I'm fumbling thru this I am not sure how it would look and how in the controller I check my current role. I am considering creating a table and relating the allowable menu items to role relationship so I can pass to the master page for rendering the dynamic menu items. Any suggestions answers or comments appreciated. Thanks - MikeI want to dynamically add menuitems to my maste




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

分享到: