membership 问题 只让匿名用户访问 首页,注册页面 还有登陆页面。。 配置文件里面怎么写?只要授权的代码就行了。。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 将首页,注册页面 还有登陆页面(默认为Login.aspx)访到网站根目录下,根目录web.config如下<?xml version="1.0" encoding="utf-8"?><configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="false" /> <authentication mode="Forms"> </authentication> <authorization> <allow users="?" /> </authorization> </system.web></configuration>[code]其他页面访到另一目录,比如others目录下,并在other目录下创建web.config如下[code=XML]<?xml version="1.0" encoding="utf-8" ?><configuration> <system.web> <authorization> <deny users="?" /> </authorization> </system.web></configuration> <!--整个网站deny--> <system.web> <authorization> <deny users="?"/> </authorization> </system.web><!--你要单独设置的页面或文件夹--> <location path="folder"> <system.web> <authorization> <allow users="?"/> </authorization> </system.web> </location> <!-- 匿名アクセスできるファイルまたはページ --> <location path="logo.gif"> <system.web> <authorization> <allow users="?"/> </authorization> </system.web> </location> <location path="default.aspx"> <system.web> <authorization> <allow users="?"/> </authorization> </system.web> </location>允许访问的写上相对路径,ALLOW USERS="?",即OK 问下怎么复原aspx.cs文件 急,待解决,在线等 如何删除字符串中的空字符? 怎么用asp.net实现多条件连选效果 求一个设置好预定时间的倒计时的提示小插件代码 vs源代码 一个简单无刷新的问题 兄弟们帮忙看看 ASP.NET MVC(C#)问题,实现RSS阅读功能的问题 小菜求教~数组问题 晕啊~~重装机器后打不开我以前做的工程,提示这个,里面有截图 关于ASP升级到ASP.net的问题 关于AJAX的问题,最近试应用AJAX技术,有点郁闷!
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<compilation debug="false" />
<authentication mode="Forms">
</authentication>
<authorization>
<allow users="?" />
</authorization>
</system.web>
</configuration>[code]其他页面访到另一目录,比如others目录下,并在other目录下创建
web.config如下
[code=XML]<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
<!--整个网站deny-->
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
<!--你要单独设置的页面或文件夹-->
<location path="folder">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
<location path="logo.gif">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
<location path="default.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
允许访问的写上相对路径,ALLOW USERS="?",即OK