foreach (var cString in conectionstring) { conectionString = cString; Configuration openWebConfiguration =WebConfigurationManager.OpenWebConfiguration("~"); ConnectionStringsSection sections = openWebConfiguration.GetSection("connectionStrings") as ConnectionStringsSection; if (sections != null) { sections.ConnectionStrings["GihanBConnectionString"].ConnectionString = conectionString; ConfigurationManager.RefreshSection("connectionStrings"); openWebConfiguration.Save(); //Page.Response.Redirect(Page.Request.Url.ToString(), false); //Response.Redirect(Request.Url.ToString()); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)