如何为用户制作权限表单。 [英] How to make privilege form for the user.?

查看:75
本文介绍了如何为用户制作权限表单。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为用户制作特权表格。

喜欢这个。

例如;

用户(user1)无法打开登录主页后的城市形式。





任何人都可以帮助我。

解决方案

在web.config中,您可以提及所有用户都可以访问您的城市表单。基于此,它将受到限制



试试这个

< location path =   Admin.aspx >  
< system.web>
< authorization>
< allow users = user1 />
< deny users = * />
< / 授权 >
< / system.web >
< / location >
< location path = User.aspx >
< system.web>
< authorization>
< allow users = user1 />
< allow users = user2 />
< deny users = * />
< / 授权 >
< / system.web >
< / location >


How to make privilege form for the user.
like this.
For Example;
A user(user1) can not open the city form after login into the main page.


Anyone Can Help me.

解决方案

In web.config, you can mention which all users can access your city form.Based on this it will be restricted

Try this

<location path="Admin.aspx">
<system.web>
<authorization>
<allow users="user1" />
<deny users="*" />
</authorization>
</system.web>
</location>
<location path="User.aspx">
<system.web>
<authorization>
<allow users="user1" />
<allow users="user2" />
<deny users="*" />
</authorization>
</system.web>
</location>


这篇关于如何为用户制作权限表单。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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