【发布时间】:2010-06-28 07:30:03
【问题描述】:
我有一个包含图像、css 和 js 文件夹的项目。
我想确保在使用表单验证时不会阻止 css、图像或 js。
我知道您可以使用 web.config 中的 locationtag 执行此操作,但我想知道您是否可以执行此操作?
这就是我现在的做法:
<location path="css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="images">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
我正在使用带有 iis 7.0 的 asp.net (c#)。
干杯, M.
【问题讨论】:
-
请参考之前的回答。 [*.com/questions/3686613/…[1]:*.com/questions/3686613/…
标签: asp.net css image forms-authentication