Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Configuration config = WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath);
- ConnectionStringsSection sec = (ConnectionStringsSection)config.GetSection("connectionStrings");
- sec.ConnectionStrings["DBCS"].ConnectionString = "Data Source=GKS_004-PC;Database=hello1;User ID=123;Password=123";
- config.Save();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement