/ Published in: VB.NET

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Dim XmlDoc As New XmlDocument() XmlDoc.Load(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile) For Each xElem As XmlElement In XmlDoc.DocumentElement If xElem.Name = "appSettings" Then For Each xNod As XmlNode In xElem.ChildNodes If xNod.Attributes(0).Value = 'Something key' Then xNod.Attributes(1).Value = 'Something Value' End If Next End If Next XmlDoc.Save(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)
URL: http://www.eggheadcafe.com/community/aspnet/14/10038785/modify-connectionstring-in-appconfig.aspx
Comments
