Asp.net c# Modify web config section value on button click -


i trying figure out 2 things (1) identify section in web config (2) change value on button click

<location path="general" allowoverride="true"> <system.web>    <authorization>        <deny users="*" />   </authorization> </system.web>    </location> 

i trying out figure out on btn click how change:

<deny users="*" />   <deny users="?" /> 

also, if possible

<deny users="?" /> 

becomes default unless changed again?

this bad idea. not giving user of site write control of site's web.config file (a security risk), instant changes, appdomain recycle , terminate request (because web.config file changed).


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -