<authentication+mode="Forms">+是应用级别的...在子目录下用+<authorization>节来控制访问的解决方法
2011-08-08 22:12
423 查看
即在子目录下的web.config:
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
根目录下的web.config:
<authentication mode="Forms">
<forms loginUrl="~/admin/login.aspx" name="login" />
</authentication>
<authorization>
<allow users="*" />
</authorization>
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
根目录下的web.config:
<authentication mode="Forms">
<forms loginUrl="~/admin/login.aspx" name="login" />
</authentication>
<authorization>
<allow users="*" />
</authorization>
相关文章推荐
- <authentication+mode="Forms">+是应用级别的...在子目录下用+<authorization>节来控制访问的解决方法
- ASP.NET&C#学习笔录4(<authentication mode="Windows|Forms|Passport|None"> )
- 出现<authentication mode="Windows"/>错误解决办法
- <authentication mode="Forms"> <forms loginUrl="~/Authentication/Login"></forms>
- 关于<authentication mode="Forms" />
- 出现<authentication mode="Windows"/>错误解决办法
- 在eclipse中运行工程时 出现<ConnectionProperties> <PropertyCategory name="Connection/Authentication">的解决方法
- Web应用程序中的服务器错误 (<authentication mode="Forms">)
- vim中Mapping already in use: "<LocalLeader>is", mode "n"错误解决的方法解释
- 出现<authentication mode="Windows"/>错误解决办法
- <authentication mode="Forms"> 发布错误
- <authentication mode="Forms"> 发布错误
- 在eclipse中运行工程时 出现<ConnectionProperties> <PropertyCategory name="Connection/Authentication">的解决方法
- 在eclipse中运行工程时 出现<ConnectionProperties> <PropertyCategory name="Connection/Authentication">的解决方法
- IIS 提示 <authentication mode="Windows" /> 错误
- 出现<add assembly="*"/>错误的解决方法:
- 未找到导入的项目"盘符:\Microsft.CSharp.targets"。请确认 <Import> 声明中的路径正确,且磁盘上存在该文件。的解决方法
- supervisorctl报错"error: <class 'socket.gaierror'>, [Errno -2] Name or service not known"的解决方法
- json返回值存在<pre style="word-wrap: break-word; white-space: pre-wrap;">的解决方法
- gvim中Mapping already in use: "<LocalLeader>is", mode "n"错误解决