<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<appSettings>
<add key="connectionString" value="server=.;database=数据库名称;UID=用户名;PWD=密码"/>
</appSettings>
</configuration>
转载于:https://www.cnblogs.com/xiaomayizoe/p/5054776.html