System.Configuration.Configuration configuration = WebConfigurationManager.OpenWebConfiguration("~"); // AppSettingsSection appSettingsSection = (AppSettingsSection)configuration.GetSection("connectionStrings"); // if (appSettingsSection != null) // { // appSettingsSection.ConnectionStrings[key].ConnectionString = value; = "Data Source=" + DbServerName+ ";Initial Catalog=" + DbName+ ";User ID=" + DbUserName + ";Pwd=" +DbUserPass+ ""; // configuration.Save();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)