config.web

来自「visual studio.net学习资料」· WEB 代码 · 共 35 行

WEB
35
字号
<configuration>

    <!-- store the database connection info here -->
    <appsettings>
        <add key="DSN" value="server=localhost;uid=sa;pwd=;database=Conf" />
    </appsettings>

    <!-- mark the web to use forms-based cookie authentication -->
    <security>
       <authentication mode="Cookie">              
          <cookie cookie=".ASPXAUTH" loginurl="Login.aspx" decryptionkey="autogenerate"> </cookie>
       </authentication>
    </security>
    
    <!-- TO DO: mark the Checkout.aspx page as available only to authorized users -->

    <!-- mark the OrderList.aspx page as available only to authorized users -->
    <location path="OrderList.aspx">
        <security>
            <authorization>
                <deny users="?" />
            </authorization>
        </security>
    </location>

    <!-- mark the OrderDetails.aspx page as available only to authorized users -->
    <location path="OrderDetails.aspx">
        <security>
            <authorization>
                <deny users="?" />
            </authorization>
        </security>
    </location>

</configuration>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?