<connectionStrings>
<add name="wz" connectionString="server=www.junjv.com,1234;database=redlim;User Id=sa;pwd=www.junjv.com" providerName="System.Data.SqlClient"/>
</connectionStrings>
放在configuration节点下
在vb.net中,可以使用如下代码获取:
Dim connStr As String = ConfigurationManager.ConnectionStrings("wz").ConnectionString