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

[Solved] How to catch server exception for after an AjaxRequest call

3 Answers 164 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 06 May 2008, 02:38 PM
Dear Telerik Support,

I have a ASPX page with an timer on it. In every 2 minutes it executes a JavaScript function in which it calls the AjaxRequest to the server to do something.

Also in my application, I have a HttpModule to check if the session is timed out and do some other security issues. If session is timed out, it throws an server SecurityException.

Currently, after the session is timed out, when I open an new instance manually of that page, I can see the error message from UI. But if I first open that page when session is not timed out, let the timer on the page run, there is no way for me to catch the the security exception thrown from HttpModule after the session is timed out. The AjaxManager.OnRequestError client event can not catch the error. Even the Page.Error server event can not catch that error.

Is there any way I can catch the server exception caused by AjaxRequest in thrown from the server like the scenario like mine? Thanks.


Chris

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 07 May 2008, 10:48 AM
Hi Chris,

There is no OnRequestError client event for the new Ajax controls. We are solely relying on the ASP.NET AJAX framework to handle those as explained in this help article.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chris
Top achievements
Rank 1
answered on 08 May 2008, 03:24 PM
Hi Steve,

Thanks for your reply. We are stille using Ajax Manager 1.8.0.0, not the new Prometheus Ajax Manager. Any idea?



Chris
0
Steve
Telerik team
answered on 10 May 2008, 07:03 AM
Hi Chris,

Thanks for the info - I was judging by the product category where you've opened the forum thread into. Anyway, I tried a few tests on my end but I could not replicate the behavior you describe. Please open a support ticket and attach a sample project with steps to follow so we can review it locally and advise you further on how to proceed.

Kind regards,
Steve
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
Chris
Top achievements
Rank 1
Answers by
Steve
Telerik team
Chris
Top achievements
Rank 1
Share this question
or