Hi,
i want to perform error trapping on the connection to a server, so if the SQL server is inaccessible the site does not crash. I'm using javascript and hoped the try...catch might work
this is want I've tried, this code is contained within existing ASP script:
%>
try
{
"<%strTRSConnect.Open App_TRSConnectionString%>";
}
catch(e)
{
alert("Error occurred ::::" + e.description)
}
<%
where App_TRSConnectionString is declared elsewhere.
It still attempts to connect and because i'm testing with an inappropriate connection string the page crashes.
any help would be great
i want to perform error trapping on the connection to a server, so if the SQL server is inaccessible the site does not crash. I'm using javascript and hoped the try...catch might work
this is want I've tried, this code is contained within existing ASP script:
%>
try
{
"<%strTRSConnect.Open App_TRSConnectionString%>";
}
catch(e)
{
alert("Error occurred ::::" + e.description)
}
<%
where App_TRSConnectionString is declared elsewhere.
It still attempts to connect and because i'm testing with an inappropriate connection string the page crashes.
any help would be great