web.config

来自「asp.net 2.0 WebPart应用. 使用Web部件创建模块化的Web」· CONFIG 代码 · 共 53 行

CONFIG
53
字号
<?xml version="1.0"?>
<!-- 
    Note: As an alternative to hand editing this file you can use the 
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in 
    machine.config.comments usually located in 
    \Windows\Microsoft.Net\Framework\v2.x\Config 
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
  <appSettings/>
  <!-- Un-comment this section to point to a local sql server instance instead of 
       the sql 2005 file-based database -->
<!--
  <connectionStrings>
    <clear/>
    <add name="LocalSQLServer" connectionString="Server=.;Database=aspnetdb;trusted_connection=yes"/>
  </connectionStrings>
-->
  
  <system.web>

    <pages theme="Wingtip" />

    <roleManager enabled="true" />
    <compilation debug="true"/>
      
    <authorization>
      <deny users="?"></deny>
    </authorization>

    <authentication mode="Forms" />

    <webParts>
      <!-- uncomment the following line (and comment out the line below that
           to switch to the personalization provider -->
       <!--<personalization defaultProvider="FileBasedPersonalizationProvider"> -->
      <personalization>
        <providers>
          <add name="FileBasedPersonalizationProvider"
               type="MsdnMag.Samples.FileBasedPersonalizationProvider" />
        </providers>

        <authorization>
          <allow users="bob" verbs="enterSharedScope" />
        </authorization>
      </personalization>

    </webParts>

  </system.web>
</configuration>

⌨️ 快捷键说明

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