在不使用ASP登录控件的情况下在网站项目中分配“配置文件属性"值 [英] assign Profile Properties value in a website project without using asp login control
本文介绍了在不使用ASP登录控件的情况下在网站项目中分配“配置文件属性"值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
我有一个使用登录控制进行用户身份验证的网站程序.
但是现在我想将程序更改为使用Windows用户进行身份验证,并在不登录程序的情况下填写配置文件属性值.
请帮助
hi
i have a website program that using login control for users authentication.
but now i want to change my program to using windows users for authentication and fill Profile Properties values without login in program.
please help
推荐答案
在您的Web配置中,只需指定
In your web config simply specify
<authentication mode="Windows" />
然后在里面:
Then inside:
<authorization>
<allow users="MYDOMAIN\joe, MYDOMAIN\Black, PC1\MaiO" />
<allow roles="MYDOMAIN\Admins" />
<deny users="*" />
</authorization>
有关此论点的更多信息:
http://msdn.microsoft.com/en-us/library/ms144284.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/ff647405.aspx [ ^ ]
干杯
More on this argument:
http://msdn.microsoft.com/en-us/library/ms144284.aspx[^]
http://msdn.microsoft.com/en-us/library/ff647405.aspx[^]
Cheers
这篇关于在不使用ASP登录控件的情况下在网站项目中分配“配置文件属性"值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文