When instantiating the SqlConnection object:
MyConnString = ConfigurationManager.ConnectionStrings("TheConnectionString").ConnectionString
Where "TheConnectionString" is the name of the connection string in Web.Config.
"SqlConnection Class (System.Data.SqlClient)" ( http://bit.ly/J5ew4y )
No comments:
Post a Comment