View Single Post
  #1  
Old 03-19-2014, 10:39 AM
paxil paxil is online now
Registered User
 
Join Date: 03-18-2014
Location: Richmond, VA
Posts: 10
Insert new key into appSettings.config

I want to be able to add a new key to the appSettings.config file. I can do the write xml and update existing entries no problem, but cannot add new lines? Any help would be much appreciated.

For example:

Before the add:
<appSettings>
<add key="DatasourceConnection" value="server" />
</appSettings>


After New Key added:
<appSettings>
<add key="DatasourceConnection" value="server" />
<add key="LDAPBinding" value="NEW KEY" />
</appSettings>
Reply With Quote