This is a migrated thread and some comments may be shown as answers.

How do I Prevent Error method on Cancel

1 Answer 52 Views
XmlHttpPanel
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 06 Oct 2010, 03:31 AM
Ok, lets say I have a callback to a webservice going on and I then click a Linkbutton on the page to nav away from it...so the callback fails, and it triggers my clientside error handler which makes my custom error text appear.   To my users, something seems broken...when really its just because they canceled the request (essentially)

Is there a way to detect a user interruption in my error handler so I can just silently fail it?  I normally dump some text or an image into the container inside my error handlers (clientside ones) so it's pretty obvious to them something funky was going on :)

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 08 Oct 2010, 02:30 PM
Hi Steve,

Besides, getting the actual error message from the server, there is nothing you can do to determine how the error arose, in the event handler of the OnClientResponseError client-side event. The error can be retrieved from the eventArgs parameter, using the args.get_errorMessage() method.

You could open a support ticket, and send us a sample project to demonstrate your specific scenario, and we can try to suggest an approach to resolve the issue.


Best wishes,
Pero
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
XmlHttpPanel
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Pero
Telerik team
Share this question
or