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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top