【发布时间】:2009-05-01 13:42:19
【问题描述】:
我的 web.config 文件中有这个:
<authentication mode="Forms">
<forms loginUrl="login.aspx" defaultUrl="Venues.aspx" />
</authentication>
<authorization>
<deny users="?" />
<allow users="*" />
</authorization>
我只想允许经过身份验证的用户访问我的页面。问题是,我第一次进入登录页面时,我的页面上没有任何图像或样式。我认为这是因为我拒绝访问 .jpeg 和 .css 文件。
我想我可以在 IIS 中解决这个问题,但我只是在 Dev 中。我只有VS 2008,没有IIS。
我是否可以允许 web.config 中匿名用户访问 imgs 目录?
【问题讨论】:
标签: asp.net forms forms-authentication