Search this insane blog:

Wednesday, August 6, 2008

web.config sundry mumbles

access the SqlConnection from the page (expressed below as a string, but you get the hint):
string connStr = ConfigurationManager.ConnectionStrings["mem"].ConnectionString;

access settings from the web.config:

Color colorBack = Color.FromName(ConfigurationManager.AppSettings["BackColor"]);

No comments:

Post a Comment