Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 redirect an error to another page ;which tells why
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

boffers
Starting Member

48 Posts

Posted - 05 June 2001 :  08:13:40  Show Profile  Visit boffers's Homepage
Hi There!
My question is if it is possible to create the following page:
Brinkster has some difficuilties with their server sometimes, which is the reason why the forum doesn't work. Now it tells you this:
Microsoft JET Database Engine error '80004005'

Cannot open database ''. It may not be a database that your application recognizes, or the file may be corrupt.

/boffers/forum/inc_top.asp, line 42

Now, I don't want my visitors to see this, I just want to make a nice page which includes the information (in dutch) why it doesn't work. Can you tell me how to make this page? Please help me!

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 05 June 2001 :  09:07:46  Show Profile  Send RaiderUK a Yahoo! Message
you would need a custom error page wich would need to be set up within IIS, which can not be done with brinkster.

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 05 June 2001 :  09:12:45  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
actually i believe that you could do this....

on error resume next
' your page code goes here...
If Err <> 0 Then
Response.Redirect "error.asp"
end if

Brad
Go to Top of Page

RaiderUK
Average Member

United Kingdom
577 Posts

Posted - 05 June 2001 :  09:37:23  Show Profile  Send RaiderUK a Yahoo! Message
sorry did not read thw question right. You can do it like that.

On Error Resume Next
If Err <> 0 Then
Dim errMsg
errMsg = server.urlencode(Err.Description)
Response.Redirect "error.asp?e=" & errMsg
end if
Err.Clear

Go to Top of Page

boffers
Starting Member

48 Posts

Posted - 06 June 2001 :  09:29:18  Show Profile  Visit boffers's Homepage
And how will this work, I cannot work with asp. Do I have to make a new one, or can i put this in a html? Or do i have to put this into one of the pages?? Can you help me- the thing is I want to redirect it to a html page, so i am sure that one works!

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 06 June 2001 :  09:33:50  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
on your asp pages do this then....
<%
On Error Resume Next
If Err <> 0 Then
Response.Redirect "error.html"
end if
Err.Clear
%>

Brad
Go to Top of Page

boffers
Starting Member

48 Posts

Posted - 08 June 2001 :  14:14:46  Show Profile  Visit boffers's Homepage
So in which file do I have to put this Line? And where is it gonna say which file you wil see like: /../.../if_error.html

Please help me!

Go to Top of Page

boffers
Starting Member

48 Posts

Posted - 08 June 2001 :  14:18:02  Show Profile  Visit boffers's Homepage
So in which file do I have to put this Line? And where is it gonna say which file you wil see like: /../.../if_error.html

Please help me!

Go to Top of Page

boffers
Starting Member

48 Posts

Posted - 13 June 2001 :  07:06:02  Show Profile  Visit boffers's Homepage
please help me!

Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 13 June 2001 :  08:37:19  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
<%
On Error Resume Next
If Err <> 0 Then
Response.Redirect "/../.../if_error.html"
end if
Err.Clear
%>

Brad
Go to Top of Page

boffers
Starting Member

48 Posts

Posted - 14 June 2001 :  14:51:21  Show Profile  Visit boffers's Homepage
I know that,
but where do I put the title of the page were it has to go to? Example:
brinkster doesn't work.
when the browser wants to show:
Microsoft JET Database Engine error '80004005'
Cannot open database ''. It may not be a database that your application recognizes, or the file may be corrupt.
/boffers/forum/inc_top.asp, line 42

I want to redirect it than to a html page I made, which tells why there is an error. So firstly- in which asp do I put that code you were talking about
secondly-where do i put the url in the code. I want to redirect it to http://home.wanadoo.nl/ajaxside/error.html

Please, can you give me all the info I need??

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07