ASP.NET

时间:2011-03-03 05:23:34

标签: asp.net authentication asp.net-membership

当我们设置<location path=时,有人可以告诉我<authentication mode= "None" />是否有效吗?

2 个答案:

答案 0 :(得分:1)

确实如此。

查看此帖子: Authentification-None for one folder(page) when the project is under FormsAuthentifications分享了一个例子。

答案 1 :(得分:1)

<location path="Recovery">      //Path of the folder or form You want to allow
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>

如果您不想允许未经授权的用户输入“?”