Hello. I've been keyword searching through this forum trying to find a similar situation that I am having, but with no luck....So...
I would like to make a custom error for an asp page that would normally work if the web was "logged" into our NETWORK server, ie where the 'live' data that users are trying to receive actually comes from.
Here is what the user sees:
1. They enter a name to look up (Namesearch.asp).
- this will bring up a static list of names that reside on our server- from .dbfs that are loaded onto our WEBSERVER each Monday - which will reduce the amount of traffic on our NETWORK server. - (Namesearch.asp calls Search2.asp given the search variable.)
2. When the list from Search2.asp is activated the users can click on which name they would like more detailed information on. When they click on a name, I take a "customer number" - a string - and send to an .asp page called result.asp. On this page is where I actually 'Link' to my NETWORK server via the string containing the "customer number". When they click on the name, result.asp is called and within that .asp page I have:
Set tax = server.CreateObject("webtalk.taxcalc"
buffer = tax.execute(cmd)
(just for note: when building this com object(webtalk.taxcalc) in IIS 4.0 the files I add to create the object are on our NETWORK server -thus if not connected to the network, would create an error)
When logged in to our NETWORK server, works great.
When not logged in, brings up an error screen:
Server object error : 'ASP 0177 : 8008005'. Server execution failed.
I would like to redirect the user to a custom error page that would let them know to try later, because the reason the webserver would not be connected is when we must reboot our NETWORK server...thus connection to the NETWORK would fail.
I found something that checks for errors when trying to open the connection, ie:
on error resume next
'do connection string here'
if err <> 0
'the connection line returned an error, handle it here'
endif
HOWEVER, this would not work in my case, because the connection does not return an error, because the 'static' .dbf containing the names from which the search is performed on actually can be connected to.
It is when they click on the name that is returned from the search2.asp that states the server failed.
So I was wondering if I could check for network connectivity before calling :
Set tax = server.CreateObject("webtalk.taxcalc"
buffer = tax.execute(cmd)
If anyone cna help - all would be appreciated.
Thanks
Angie
I would like to make a custom error for an asp page that would normally work if the web was "logged" into our NETWORK server, ie where the 'live' data that users are trying to receive actually comes from.
Here is what the user sees:
1. They enter a name to look up (Namesearch.asp).
- this will bring up a static list of names that reside on our server- from .dbfs that are loaded onto our WEBSERVER each Monday - which will reduce the amount of traffic on our NETWORK server. - (Namesearch.asp calls Search2.asp given the search variable.)
2. When the list from Search2.asp is activated the users can click on which name they would like more detailed information on. When they click on a name, I take a "customer number" - a string - and send to an .asp page called result.asp. On this page is where I actually 'Link' to my NETWORK server via the string containing the "customer number". When they click on the name, result.asp is called and within that .asp page I have:
Set tax = server.CreateObject("webtalk.taxcalc"
buffer = tax.execute(cmd)
(just for note: when building this com object(webtalk.taxcalc) in IIS 4.0 the files I add to create the object are on our NETWORK server -thus if not connected to the network, would create an error)
When logged in to our NETWORK server, works great.
When not logged in, brings up an error screen:
Server object error : 'ASP 0177 : 8008005'. Server execution failed.
I would like to redirect the user to a custom error page that would let them know to try later, because the reason the webserver would not be connected is when we must reboot our NETWORK server...thus connection to the NETWORK would fail.
I found something that checks for errors when trying to open the connection, ie:
on error resume next
'do connection string here'
if err <> 0
'the connection line returned an error, handle it here'
endif
HOWEVER, this would not work in my case, because the connection does not return an error, because the 'static' .dbf containing the names from which the search is performed on actually can be connected to.
It is when they click on the name that is returned from the search2.asp that states the server failed.
So I was wondering if I could check for network connectivity before calling :
Set tax = server.CreateObject("webtalk.taxcalc"
buffer = tax.execute(cmd)
If anyone cna help - all would be appreciated.
Thanks
Angie