Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有内置于 MVC4 的用户管理模块。我的目的是为每个用户设置访问主网站网页中的控件的权限。我不想在我的主网站的每个网页中硬编码权限。我完全想要在 webforms 中工作的东西,即“查找控件”属性。
一种解决方法是获取客户端作为 Jason 数据的权限,并使用 JS 从客户端启用或禁用控件,我对此很确定。有人请给我一些启发。