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

Handling Multiple AsyncPostBackError Types?

1 Answer 74 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Alex Jones
Top achievements
Rank 1
Alex Jones asked on 23 Nov 2009, 07:33 PM
Our Framework has gotten to a point where we need to handle AsyncPostBackErrors in different ways on the same page.  Here is an example of my problem in short.  We want to display ErrorTextA using an "alert();" if an error is thrown in systemA... which is simple enough.  But on the same page we want ErrorTextB to be displayed on a label if an error is thrown in systemB.  Is there a way to Differentiate between the two or have two AsyncPostBackError handlers on the same page?  Basicly I need to know if the error came from SystemA or SystemB.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 26 Nov 2009, 12:20 PM
Hi Alex,

In order to achieve your goal, I suggest that you handle the ScriptManager AsyncPostBackError event and assign your error label values there. For more details on error handling with Ajax, you can review this help topic.

I hope this helps.

Kind regards,
Iana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Alex Jones
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or