玄铁剑

成功的途径:抄,创造,研究,发明...
posts - 128, comments - 42, trackbacks - 0, articles - 174

asp.net帶權限控制時theme訪問問題

Posted on 2007-04-21 18:33 玄铁剑 阅读(227) 评论(0)  编辑 收藏 引用 所属分类: ASP.NET相关

<configuration>
 
 
  <system.web>
    <authentication mode="Forms">
      <forms loginUrl="default.aspx" defaultUrl="default.aspx" protection="All"
             name=".AspxAuth" path="/" timeout="30">
      </forms>
    </authentication>
    <authorization>
      <deny users="?"/>
    </authorization>

    <caching>
      <outputCacheSettings>
        <outputCacheProfiles>
          <add name="MyCache" duration="0" varyByParam="none"/>
        </outputCacheProfiles>
      </outputCacheSettings>
    </caching>

  </system.web>

  <location path="App_Themes/SkinFile">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>

 
</configuration>

只有注册用户登录后才能发表评论。