如何在主页面(布局)上显示Rolebased Items。 [英] How do I have a Master page(Layout) to have Rolebased Items to show on it.

查看:119
本文介绍了如何在主页面(布局)上显示Rolebased Items。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是ASP.NET MVC的新手。我正在尝试使用ASP.NET MVC4开发Internet应用程序,并在其中使用SimpleMembership。我希望有一个主页应该是基于角色的项目。

换句话说,我需要显示Adamin的所有菜单项,但只有非管理员用户的菜单项。你能帮帮我吗?如果你能发送代码片段,我们将不胜感激。



提前致谢。

Hi ,

I am new to ASP.NET MVC. I am trying to develop an Internet Application using ASP.NET MVC4 and am using SimpleMembership in it. I want to have a masterpage that should be Role based items on it.
In other words, I need to show all menu items for Adamin, but only couple menu items for non Admin users. Can you please help me out. It would be appreciated if you can send code snippet.

Thanks in advance.

推荐答案

参考以下链接



http:// techbrij。 com / role-based-menu-asp-net-mvc [ ^ ]



Jquery方法



http://vizagtechie.blogspot.in/2012/06/dynamic-multi-level-jquery -menu-for.html [ ^ ]



希望这有帮助
Refer the below links

http://techbrij.com/role-based-menu-asp-net-mvc[^]

Jquery Approach

http://vizagtechie.blogspot.in/2012/06/dynamic-multi-level-jquery-menu-for.html[^]

Hope this helps


这篇关于如何在主页面(布局)上显示Rolebased Items。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆