Tuesday, May 5, 2009

Use web config for connection string

WebConfig:





Code Behind:

string connStr = ConfigurationManager.ConnectionStrings["MainConnStr"].ConnectionString;

No comments:

Post a Comment

 
Locations of visitors to this page