my web.config contains sections like
location -- system.web -- authorization -- allow
<location path="ClientDisabled.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
(I am not sure how to write full tag including XML tags here, seems like forum is not allowing it)
I and several others under main node. I need to read them via configuration manager. I am trying, but I am unable to read them using code like
WebConfigurationManager.GetSection ("location", "~/")
or other many possiblities. I am not sure even if I can read these entries via Configuration Manager.
Is there someone who knows how can I read them and write back, when needed? I guess if I can read them, I might need to delete one or two such entries and then save back web.config file.
thanks for the help. Sameers