我怎样才能用Web.Config文件中连接字符串
在Web.Config文件中有下面的连接字符串,我想在.aspx.cs文件中去使用它(goodsmisdbConnectionString),但是不知怎样才能引用到。请求您的帮助,先谢谢了啊!<configuration>
<connectionStrings>
<add name="goodsmisdbConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\goodsmisdb_Data.MDF;Integrated Security=True;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
.....
</configuration>