Click here to Skip to main content
15,902,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All ,

I am generating some aspx pages programmatically. Now I need to add these pages in the web.config file as public like,
XML
<location path="Page.aspx">
        <system.web>
            <authorization>
                <allow users="*"></allow>
            </authorization>
        </system.web>
    </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.


Thanks,
Posted
Updated 5-Oct-10 3:26am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900