Set Configuration Settings for a particular folder/page in Web.config

This code shows how to Set Configuration Settings for a particular folder/page in Web.config



<configuration>

<location path="Folder Name/File Name">
<system.web>
-- Settings Here ------
</system.web>
</location>

</configuration>


Example :


<location path="sample.aspx">
<system.web>
<authorization allow="*"/>
<httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true"/>
</system.web>
</location>


Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: