Web.config中字符串与出错页设定

来源:互联网 发布:mac上的迅雷下载不了 编辑:程序博客网 时间:2024/05/02 00:52

<!--数据库连接字符串-->
  <connectionStrings>
    <add name="connStr" connectionString="server=.;database=newssystem;user=sa;pwd=123456"/>
  </connectionStrings>
 <system.web>
      <!--
            Set compilation debug="true" to insert debugging
            symbols into the compiled page. Because this
            affects performance, set this value to true only
            during development.
        -->
   
    <!--********出错页的设定********-->
    <customErrors mode="On" defaultRedirect="~/Error.htm"> </customErrors>
   

原创粉丝点击