views:

34

answers:

1

Is it possible to catch a classical ASP Scripting Timeout and redirect to a proper self defined error page, to avoid that the user sees the runtime error page ?

+4  A: 

Are you using IIS? You can configure IIS to have a predefined error page.

EDIT

Take a look at this site on configuring your error pages on IIS. You should be able to create an error page that can display a friendly message to the user whenever timeouts occur...I know for the company I work for, we experienced SQL timeouts before recently upgrading our systems.

You can also look at this site for some classic ASP code to get the latest server error.

Hope this helps.

Aaron
yes I use IIS !
Elmex
what version of IIS and what OS is IIS running on?
Aaron
iis 6 on a windows 2003 server
Elmex
@Aaron: you helped me already with your idea !
Elmex
Glad to hear it. Take a look at the sites I just suggested...they may help you even further.
Aaron