开发者

Set global maxRequestLength value in web.config- for all pages

开发者 https://www.devze.com 2023-01-02 05:28 出处:网络
I currently have my web.config location section set up like this <location path=\"page1.aspx\"> <system.web>

I currently have my web.config location section set up like this

<location path="page1.aspx">
  <system.web>
    <httpRuntime maxRequestLength="65536" executionTimeout="3600"/>
  </system.web>
</location>
<location path="page2.aspx">
  <system.web>
    <httpRuntime maxRequestLength="65536" executionTimeout="3600"/>
  </system.web&开发者_开发知识库gt;
</location>

 etc

with one entry for each page.

How can I set the maxRequestLength for all pages, instead of one at a time?


You can directly add under Configuration section , this will be set for all pages.

<system.web>
  <httpRuntime maxRequestLength="65536" executionTimeout="3600"/>
</system.web>


Do it in your base/parent <system.web> section.

0

精彩评论

暂无评论...
验证码 换一张
取 消