Author |
Topic |
|
boffers
Starting Member
48 Posts |
Posted - 05 June 2001 : 08:13:40
|
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
|
you would need a custom error page wich would need to be set up within IIS, which can not be done with brinkster.
|
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 05 June 2001 : 09:12:45
|
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 |
|
|
RaiderUK
Average Member
United Kingdom
577 Posts |
Posted - 05 June 2001 : 09:37:23
|
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
|
|
|
boffers
Starting Member
48 Posts |
Posted - 06 June 2001 : 09:29:18
|
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!
|
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 06 June 2001 : 09:33:50
|
on your asp pages do this then.... <% On Error Resume Next If Err <> 0 Then Response.Redirect "error.html" end if Err.Clear %>
Brad |
|
|
boffers
Starting Member
48 Posts |
Posted - 08 June 2001 : 14:14:46
|
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!
|
|
|
boffers
Starting Member
48 Posts |
Posted - 08 June 2001 : 14:18:02
|
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!
|
|
|
boffers
Starting Member
48 Posts |
Posted - 13 June 2001 : 07:06:02
|
please help me!
|
|
|
redbrad0
Advanced Member
USA
3725 Posts |
Posted - 13 June 2001 : 08:37:19
|
<% On Error Resume Next If Err <> 0 Then Response.Redirect "/../.../if_error.html" end if Err.Clear %>
Brad |
|
|
boffers
Starting Member
48 Posts |
Posted - 14 June 2001 : 14:51:21
|
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??
|
|
|
|
Topic |
|