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

推荐订阅源

T
Threat Research - Cisco Blogs
S
Securelist
H
Heimdal Security Blog
Scott Helme
Scott Helme
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
Spread Privacy
Spread Privacy
Cyberwarzone
Cyberwarzone
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
人人都是产品经理
人人都是产品经理
C
Cisco Blogs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Engineering at Meta
Engineering at Meta
Project Zero
Project Zero
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
Cisco Talos Blog
Cisco Talos Blog
Last Week in AI
Last Week in AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
O
OpenAI News
P
Proofpoint News Feed
Google Online Security Blog
Google Online Security Blog
Recent Announcements
Recent Announcements
Hacker News: Ask HN
Hacker News: Ask HN
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
P
Privacy International News Feed
Google DeepMind News
Google DeepMind News
G
GRAHAM CLULEY
Apple Machine Learning Research
Apple Machine Learning Research
TaoSecurity Blog
TaoSecurity Blog
S
Security @ Cisco Blogs
C
Check Point Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Jina AI
Jina AI
S
Secure Thoughts
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LINUX DO - 最新话题
T
Tenable Blog
Latest news
Latest news
I
InfoQ

博客园 - 暮江独钓

无数据库日志文件恢复数据库方法两则[转自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)  评论()    收藏  举报