Monday, November 26, 2007

Update Web.config +

Ever needed to update the web.config dynamically?

Make sure you add a reference at the top of the page to

Imports System.Web.Configuration

Dim value As String = ""

Dim config As Configuration =
Dim appsetting As AppSettingsSection =

appsetting.Settings("emailaddress").Value = value


Have fun updating your web.config programmatically!

1 comment:

Justin said...

Just what I was looking for thank you!