Thursday, November 29, 2012

How to read database connection string from web.config?

 System.Configuration.ConfigurationManager.ConnectionStrings["connectionStringName"].ConnectionString;

No comments:

Post a Comment