On Error redirect

S

shank

I have a page that will timeout and crash with a timeout error on line 200.

How can I do a redirect instead of the page halting if such an error does
happen?

thanks
 
M

Mike Brind [MVP]

shank said:
I have a page that will timeout and crash with a timeout error on line 200.

How can I do a redirect instead of the page halting if such an error does
happen?

thanks

Wouldn't it be preferable to resolve the cause of the error - therefore
preventing it in the first place?
 
S

shank

Mike Brind said:
Wouldn't it be preferable to resolve the cause of the error - therefore
preventing it in the first place?
=============================
I know what the problem is and cannot fix. I need to change the timeout spec
on a shared SQL server and the admin refuses to change because in fact it's
shared. So, the option is to refresh the page manually every couple minutes
or find a way to automate that refresh. It's an admin page and I'm the only
one acessing it.
thanks
 
A

Anthony Jones

shank said:
I have a page that will timeout and crash with a timeout error on line 200.

How can I do a redirect instead of the page halting if such an error does
happen?

You could use an On Error Resume Next and test Err.Number after line 200,
if non-zero Response.Redirect. (or try catch if you are using JScript and
do the redirect in the catch)
 
J

Jeff Dillon

shank said:
=============================
I know what the problem is and cannot fix. I need to change the timeout
spec on a shared SQL server and the admin refuses to change because in
fact it's shared. So, the option is to refresh the page manually every
couple minutes or find a way to automate that refresh. It's an admin page
and I'm the only one acessing it.
thanks
Then fix your query. Or start a SQL job and immediately exit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top