Adding Location section Programmatically In Web.Config File RRS feed

  • Question

  • Hi All ,

    I am generating some aspx page melodramatically. Now I need to add these pages in the web.config file as public like,

    <location path="page.aspx">
                    <Allow users="*"></Allow>
        </location>How can I add this section in my web.cofig file while my page is generating through code. I need to add the above section in web.cofig file for every time whenever a page is generated on the Page Generate Button Click programmatically.


    Tuesday, October 5, 2010 12:29 PM