protected static string ConnStr = ConfigurationSettings.AppSettings["ConnStr"].ToString();
<add key="ConnStr" value="Data Source=MY-PC\SQLEXPRESS;Initial Catalog=xxx;Persist Security Info=True;User ID=xxx;Password=xxx;" />
Regards, Sheo Narayan http://www.dotnetfunda.com
Login to post response