Hi,
I am using asp and javascript. Unfortunately, I can only find information regarding error handeling for vbScript. The problem I am having and where I would like to implement it is the following:
Currently I am with a terrible host (don't want to mention names, but the name starts with an I). There server resources run low quite frequently and (since I am using an MS Access database on this particular job) since they have to many sites on a single server, access can not handle more than a certain number of connections. Every once in a while my pages will simply display this error message:
[Microsoft][ODBC Microsoft Access Driver] Not enough space on temporary disk.
This error is caused when I attempt to open a connection to the database on my page.
Now: how can I detect an error and redirect to a simple htm page giving the site visitor a plain english message stating that the site is temporarily inaccessable and to visit again later. Alternatively, I could just Response.Write such a message to the same page. What I don't want is the visitor to see the above Microsoft error.
Any help is greatly appreciated,
Corneliuswww.brinkster.com
for a new server
and their forums handle a lot of topics on asp/ vbscript for error handling. I will check later when I get home for the exact code for error handling in ASP. I have it, and its not too hard to impliment.
I am using asp and javascript. Unfortunately, I can only find information regarding error handeling for vbScript. The problem I am having and where I would like to implement it is the following:
Currently I am with a terrible host (don't want to mention names, but the name starts with an I). There server resources run low quite frequently and (since I am using an MS Access database on this particular job) since they have to many sites on a single server, access can not handle more than a certain number of connections. Every once in a while my pages will simply display this error message:
[Microsoft][ODBC Microsoft Access Driver] Not enough space on temporary disk.
This error is caused when I attempt to open a connection to the database on my page.
Now: how can I detect an error and redirect to a simple htm page giving the site visitor a plain english message stating that the site is temporarily inaccessable and to visit again later. Alternatively, I could just Response.Write such a message to the same page. What I don't want is the visitor to see the above Microsoft error.
Any help is greatly appreciated,
Corneliuswww.brinkster.com
for a new server
and their forums handle a lot of topics on asp/ vbscript for error handling. I will check later when I get home for the exact code for error handling in ASP. I have it, and its not too hard to impliment.