web.config里的身份验证和授权我的站点里根目录下的文件.aspx是不需要登陆就可浏览的,我想使站点里的一个文件夹中的内容需要登陆后才能浏览这样怎样配置web.config啊下面是我的web.config文件,在根目录下<configuration>
<system.web> <authentication mode="Forms" >
<forms loginUrl="logon.aspx" name=".FormsAuthCookie"/>
</authentication> <authorization>
<allow users="*"/>
</authorization> </system.web>
<location path="Customer"> Customer文件夹位于根目录下
<deny users="?"/>
</location>
</configuration>Login.aspx位于根目录下当我请求Customer 文件夹中的.aspx时 页面转向login.aspx,登陆之后进入Customer文件中的aspx页当我通过Customer文件中的aspx页的链接,连到Customer文件中的页时又转道Login.aspx页.还要再登陆一次怎么回事啊?多谢各位指点!!!
<system.web> <authentication mode="Forms" >
<forms loginUrl="logon.aspx" name=".FormsAuthCookie"/>
</authentication> <authorization>
<allow users="*"/>
</authorization> </system.web>
<location path="Customer"> Customer文件夹位于根目录下
<deny users="?"/>
</location>
</configuration>Login.aspx位于根目录下当我请求Customer 文件夹中的.aspx时 页面转向login.aspx,登陆之后进入Customer文件中的aspx页当我通过Customer文件中的aspx页的链接,连到Customer文件中的页时又转道Login.aspx页.还要再登陆一次怎么回事啊?多谢各位指点!!!
解决方案 »
- C# 替换字符串 在线等.....
- 关于动态加载用户控件传值问题
- 在ASP.NET中如何用Button或超链接实现文件的上传?
- 判断不出是否安装了Adobe Reader呢?你需要先安装Adobe Reader才能正常浏览文件,请点击这里下载Adobe Reader.就问这几行代码错在哪儿?怎么没有起作用的呢!
- GridView除了绑定字段列外,一个模板列中放置了CheckBox,其余的四个模板列分别放置了TextBox1 - 4,绑定后几乎死机
- 简单问题~~!
- 高分求教:DataGrid中TemplateColumn的问题
- 两个页面之间的调用问题???会的一定帮帮忙呀!急啊!!!!!!!!!!!!!!!!!!!!!!!!!!
- 求正则表达式:网址
- 讨论:Asp.net 中的数据校验应该如何做?
- 关于树型控件(TreeView)的用法问题!
- 匿名标识不能执行模拟。 ???什么意思?
<configuration>
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
<location path="具体的某个文件.aspx"> Customer文件夹位于根目录下
<deny users="?"/>
</location>
......
每个页面做个权限的限制试一下吧
</configuration>