ASP.NET窗体身份验证和[否认证"子文件夹 [英] ASP.NET Forms Authentication and a "No Authentication" subfolder

查看:166
本文介绍了ASP.NET窗体身份验证和[否认证"子文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能禁用的网站是窗体身份验证的子文件夹中的所有验证?你怎么做到这一点?

Is it possible to disable all authentication in a subfolder of a web site that is Forms Authenticated? How do you accomplish this?

推荐答案

是的,放在与此内容的子文件夹web.config文件:

Yes, place a web.config file on the subfolder with this content:

<configuration>
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
</configuration>

这篇关于ASP.NET窗体身份验证和[否认证&QUOT;子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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