1

I just want to ask if theres a way to increase the executionTimeOut of a particular page? and not the whole application?

<configuration>    
  <system.web>
   <httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false" 
minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" />
 </system.web>
</configuration>
user3035024
  • 199
  • 2
  • 5
  • 17

2 Answers2

3
Page.Server.ScriptTimeout = 90;

Or

use location element in config file

<configuration>
  <location path="UploadPage.aspx">
    <system.web>
      <httpRuntime executionTimeout="90" maxRequestLength="4096" />
    </system.web>
  </location>
</configuration>

See To Increase Request Timeout only on particular Web Page and Increase ASP.Net timeout on a per page level

Community
  • 1
  • 1
Vince
  • 620
  • 1
  • 5
  • 9
0

put in Web Config File

 <location path="Report.aspx">
    <system.web>
      <httpRuntime executionTimeout="3600" maxRequestLength="10240"/>
    </system.web>
  </location>