Connection String in ASP.NET

string connString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;

Where ConnectionString=Name of commection string in web.config file.

No comments:

Post a Comment