.net2005版本

来源:百度知道 编辑:UC知道 时间:2024/05/09 06:22:46
.net2003有个global.asax文件用来配置应用程序设置.
.net2005版本和03版本的不一样,没有global.asax文件,那么怎么来配置应用程序设置呢??

用Web.Config文件

<?xml version="1.0"?>
<!--
注意: 除了手动编辑此文件以外,您还可以使用
Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的
“网站”->“Asp.Net 配置”选项。
设置和注释的完整列表在
machine.config.comments 中,该文件通常位于
\Windows\Microsoft.Net\Framework\v2.x\Config 中 10.158.212.88
-->
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<connectionStrings>
<add name="WFJXConnectionString" connectionString="Data Source=10.140.191.129;Initial Catalog=JiXiao_LJ;User ID=sa;Persist Security Info=True;Password=hello;Enlist=true;Pooling=true;Max Pool Size=1000;Min Pool Size=0;Connection Lifetime=500;user id=sa;packet size=1000" providerName="System.Data.SqlClient"/>
</connectionStrings>
<