经常这样写道
<authentication mode="Forms">
<forms loginUrl="Login.aspx" protection="All" />
</authentication>很简单 ,继续在web.config中增加配置
比如你想显示images/dl.gif 这个图片,就需要在configuration 中增加
<configuration>
<location path="images/dl.gif">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
</configuration>后来发现,也可以制定目录 就是在location path 那里给路径的名称也可以