Preventing the request timeout

  • Thread starter Thread starter Pavils Jurjans
  • Start date Start date
P

Pavils Jurjans

Hello,

It is possible to set a high value in the web.config file, to prevent
request timeout for a very complex pages that take long time to generate:

<system.web>
<httpRuntime executionTimeout="300"/>

But, I do not like to keep such a high value as a default. I better keep
there a low value, and in case I need to generate complex report, I'd change
it to a higher value, just for this very request. Is there any way to set
that value at runtime?

Thanks,

Pavils
 
Unfortunately there is no way to change it per request.
There is Server.ScriptTimeout but it only works in development (when
compiled in DEBUG mode).


George
 
Back
Top