devxlogo

Extend the Timeout of an ASP

Extend the Timeout of an ASP

It is possible to set a default timeout value for your Web application via Internet Service Manager. However, there are occasions when an ASP might process longer than this default value. This could result from intensive file I/O, complex business rules including database access, automation of other Web pages, or if you FTP to other Websites. Rather than extending the timeout for your Web project, extend the timeout for this particular page by using Server.ScriptTimeout. Just put the following code at the top of your ASP:

 <% Server.ScriptTimeout  = 60 * 3 '3 minutes%>

devx-admin

Share the Post: