In ASP JavaScript I am trying to form a statement (possibly an if statement) that will catch any error’s that occur on any ASP page and when there is one it will redirect the page to an error page that will display the previous pages title and error number.
How can I identify the error and redirect to a new ASP page with the two pieces of information?
Something like the following should work fine:
On your destination error page simply read the values from the querystring e.g.
Request.QueryString("errnum")