Authentication的问题
目录结构是这样的:
-My Application
|---Admin
| |---Admin_Index.aspx
| |---Admin_Left.aspx
| |---Admin_Right.aspx
|---Other Directories
|---Index.aspx
|---Default.aspx
|---web.config
根目录下的web.config的Authentication 和 Authorization是这样的:
<authentication mode="Forms">
<forms name="CitationAuth" loginUrl="Index.aspx" protection="All" path="/" />
</authentication>
<authorization>
<deny users="?"/>
</authorization>
这样就使得Admin/Admin_Index.aspx也访问不了
我想要的是能访问Admin/Admin_Index.aspx, 但是当直接访问Admin下的其他文件时, 先要对用户进行认证, 但访问根目录下的其他页面时, 还是和现在同样的效果(就是直接访问其他网页,先转到Index.aspx对用户验证),应该怎么作? 修改web.config? 还是在Admin下也写一个web.config 还是其他方法? 请高手指点! 不胜感激!