Programmatically Modify Value In Web.Config

J

Joey

Is this possible?

I have an app where we are using forms authentication and are allow
editing/changing of security role names. Since I have set permissions
with <location> tags in web.config (i.e. allow roles="Administrator"),
I will also need to modify the values there.

TIA,
JP
 
A

Aidy

web config is just an xml file so you can read/alter/save it using the
normal xml namespaces. However note that doing so will cause your
application to be restarted.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top