<configuration>
<appSettings/>
<connectionStrings>
<add name="sunrockConnectionString" connectionString="Data Source=WINXP_PC\SQLEXPRESS;Initial Catalog=sunrock;Integrated Security=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
<system.web>
----------------------------------------------------------------------------------------------
cn.ConnectionString = ConfigurationManager.ConnectionStrings["sunrockConnectionString"].ToString();
cn.Open();
0 comments:
Post a Comment