use*_*537 4 c# asp.net authentication basic-authentication
我有一个基本身份验证的Intranet站点.
是否可以只有一页不要求凭证?在允许只访问一个页面的任何人?
可以在web.config中为单个页面设置某些内容吗?
将以下元素添加到configurationweb.config节点:
<location path="aFolder/aPageToExclude.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
Run Code Online (Sandbox Code Playgroud)
有关更多信息和用法,请查看MSDN文档:位置元素(ASP.NET设置架构)