复制代码 代码如下:
 
<!--配置Forms身份认证 不允许匿名用户访问,否则跳转到/Manager/login.aspx 页面 --> 
<authentication mode="Forms"> 
<forms loginUrl="~/Manager/login.aspx" protection="All" path="http://www.vevb.com/" timeout="60"></forms> 
</authentication> 
<authorization> 
<deny users="?"/> 
</authorization> 
复制代码 代码如下:
 
<!--允许所有用户访问Script文件夹--> 
<location path="Script"> 
<system.web> 
<authorization> 
<allow users="*" /> 
</authorization> 
</system.web> 
</location> 
复制代码 代码如下:
 
<!-- 
定义 ASP.NET身份验证机制 
--> 
<!--允许所有用户访问Script文件夹--> 
<location path="Script"> 
<system.web> 
<authorization> 
<allow users="*" /> 
</authorization> 
</system.web> 
</location> 
<system.web> 
<customErrors mode="Off" defaultRedirect="../error.aspx"/> 
<!--配置Forms身份认证 不允许匿名用户访问,否则跳转到/Manager/login.aspx 页面 --> 
<authentication mode="Forms"> 
<forms loginUrl="~/Manager/login.aspx" protection="All" path="http://www.vevb.com/" timeout="60"></forms> 
</authentication> 
<authorization> 
<deny users="?"/> 
</authorization> 

新闻热点
疑难解答
图片精选