惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
SecWiki News
SecWiki News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Forbes - Security
Forbes - Security
Schneier on Security
Schneier on Security
W
WeLiveSecurity
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Google Online Security Blog
Google Online Security Blog
O
OpenAI News
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
PCI Perspectives
PCI Perspectives
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
Help Net Security
Help Net Security
G
GRAHAM CLULEY
Latest news
Latest news
V
Visual Studio Blog
The Cloudflare Blog
T
Troy Hunt's Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Stack Overflow Blog
Stack Overflow Blog
GbyAI
GbyAI
I
InfoQ
Know Your Adversary
Know Your Adversary
B
Blog RSS Feed
V2EX - 技术
V2EX - 技术
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Heimdal Security Blog
Y
Y Combinator Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
The GitHub Blog
The GitHub Blog
P
Palo Alto Networks Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tor Project blog
T
Threat Research - Cisco Blogs
博客园 - 三生石上(FineUI控件)
Cloudbric
Cloudbric
博客园 - Franky
博客园 - 叶小钗
S
Security @ Cisco Blogs
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
T
Threatpost
MongoDB | Blog
MongoDB | Blog
V
Vulnerabilities – Threatpost
Martin Fowler
Martin Fowler

博客园 - 暮江独钓

无数据库日志文件恢复数据库方法两则[转自www.sql2005.com.cn] Use ToString() to format values C# Tostring() 格式大全 [转] - 暮江独钓 C#数值结果表(格式化字符串) - 暮江独钓 - 博客园 T-SQL循环打印一年中所有的日期(WHILE循环) SQL Server各种日期计算方法(收藏) ado.net 如何读取 excel (转贴) C#编码标准--编码习惯 发布一个很COOL的图片验证码程序[含源码](转) 怎么在框架窗口中退出 c#取机器码 [转] ASP.NET几种安全验证方法[转] 最近一直在做C#操作office方面的工作!总结一下!Word(二) [转] 使用C#自动生成Word2003文档(通过操作COM组件实现) [转] C#中对Web.config配置文件的操作(增删改读) [转] ASP.NET在线用户列表精确版——解决用户意外退出在线列表无法及时更新问题 Cookie与自动保存 [ASP.NET] 如何在GridView中使用DataFromatString DataFormatString格式字符串
VS2005如果使用Forms驗證,Login頁面不能引用工程中CSS和IMG文件解決方案 [转]
暮江独钓 · 2007-08-24 · via 博客园 - 暮江独钓

VS2005使用Forms驗證後,如果用戶還未登陸,也就是未通過驗證,就沒有權限使用工程下面的其他文件,如CSS以及圖片等,解決辦法如下:
修改Web.config:
<configuration>
 <appSettings>
 </appSettings>
 <connectionStrings/>
 <system.web>
   <authentication mode="Forms">
   <forms loginUrl="Login.aspx" name=".Performance" timeout="60" path="/">
   </forms>
  </authentication>
  <authorization>
   <deny users="?"/>
   <allow users="*"/>
  </authorization>
 </system.web>
 <location path="CSS/StyleSheet.css">
  <system.web>   
   <authorization>
    <allow users="*"/>
   </authorization>  
  </system.web>
 </location>
 
</configuration>
用<location></location>包含需要有權訪問的目錄或者文件.使用<allow users="*">授權.

posted @ 2007-08-24 09:28  暮江独钓  阅读(373)  评论()    收藏  举报