<authentication+mode="Forms">+是应用级别的...在子目录下用+<authorization>节来控制访问的解决方法
2011-08-08 22:12
951 查看
即在子目录下的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>节来控制访问的解决方法
- <authentication mode="Forms"> 发布错误
- 在eclipse中运行工程时 出现<ConnectionProperties> <PropertyCategory name="Connection/Authentication">的解决方法
- <img src="中文文件名" /> 无法显示图片,图片名改成英文就可以显示;试了下在电脑桌面写了个HTML测试下,可以显示中文名称的图片,解决方法
- 出现<authentication mode="Windows"/>错误解决办法
- 出现<authentication mode="Windows"/>错误解决办法
- ASP.NET&C#学习笔录4(<authentication mode="Windows|Forms|Passport|None"> )
- 出现<authentication mode="Windows"/>错误解决办法
- 在eclipse中运行工程时 出现<ConnectionProperties> <PropertyCategory name="Connection/Authentication">的解决方法
- <input type="file" name="filePath" />最简单的解决方法
- 解决用<img src="<%# Eval("ShowPhoto")%>"动态绑定图片,发布到IIS上无法显示的问题
- <s:property>标签从后台读取Date类型年份为两位在jsp页面显示的解决方法
- Stuts2的"struts.devMode"设置成true后,不起作用的解决的方法
- <authentication mode="Forms"> 发布错误
- <generator class="native"> 有主键自增长,解决插入失败
- <authentication mode="Forms"> <forms loginUrl="~/Authentication/Login"></forms>
- "为帮助内容存储区指定的位置无效或者您无权访问该位置"解决方法
- Web应用程序中的服务器错误 (<authentication mode="Forms">)
- 使用struts2的<s:param>等标签向action传值出现中文乱码的解决方法
- gvim中Mapping already in use: "<LocalLeader>is", mode "n"错误解决