<authentication mode="Forms">什么我设置了这个的时候,我的login.aspx页面的图片都显示不了,如果mode="Windows"的时候就可以显示但是又达不到我所要的功能

解决方案 »

  1.   

    验证模式
    <authentication mode="Forms">
        <forms loginUrl="Login.aspx"/>
    </authentication><location path="Image">
    <system.web>
    <authorization>
    <allow users="*"/>
    </authorization>
    </system.web>
    </location>
      

  2.   

    http://msdn.microsoft.com/zh-cn/library/1d3t3c61(v=VS.80).aspx看看官方的解说
      

  3.   

    web.config可以设置
    <location path="JS/JavaScript.js">
    <system.web>
    <authorization>
    <allow users="* "/>
    </authorization>
    </system.web>
    </location>
    这样允许所有用户访问<allow users="* "/>如果想学FORM认证 
    参考记得结贴