Monday, 2 April 2012

To take the connection string from config file in ASP.Net

 static string connStr =ConfigurationManager.ConnectionStrings["SQLConnection"].ToString();

        SqlConnection objconn = new SqlConnection(connStr);

No comments:

Post a Comment