Handling Client Side Errors

  • Thread starter Thread starter chuckdfoster
  • Start date Start date
C

chuckdfoster

Is there a way to handle client side errors from ASP.NET? For example, I
recieve an error when trying to add an Outlook Event (via vCalendar) to a
client PC if they don't have any calendar software installed.
 
Hi,

I would use a try/catch block in your javascript routine:

try {
Do your Calendar stuff here.
}
catch(objError) {
alert("An error occured updating your calendar : " +
objError.description);
}

If you want to tell the server about it you could set a "hidden" field to
something (remember runat="Server") and check it on your postback. You
could force an immediate postback in your catch by using Form1.submit();.
Good luck! Ken.
 
Back
Top