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

No Error Handling with RadAjaxManager

2 Answers 153 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Luis Silva
Top achievements
Rank 1
Luis Silva asked on 12 May 2010, 04:30 PM
This is what I have:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="btnTest"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="btnTest" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"  
        Skin="Default"
    </telerik:RadAjaxLoadingPanel> 
    <asp:Button runat="server" Text="OK" ID="btnTest" /> 

and my code behind:
protected void Page_Load(object sender, EventArgs e) 
    { 
        if (Page.IsPostBack) 
        { 
            throw new Exception("test"); 
        } 
    } 



When i click the button nothing happens, no alert box, no exception notification nothing...can someone point me in the right direction?

Thanks


2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 14 May 2010, 10:54 AM
Hello Luis,

We did not implement our own error handling for RadAjax, as the MS AJAX framework already takes care of that. During partial-page rendering, you can handle errors by doing the following:

·     Set the AllowCustomErrorsRedirect property, which determines how the custom error section of the Web.config file is used when an error occurs during an asynchronous postback.
·     Handle the ScriptManager control's AsyncPostBackError event, which is raised when there is a page error during an asynchronous postback.
·    Set the AsyncPostBackErrorMessage property, which is the error message that is sent to the browser.



Best wishes,
Maria Ilieva
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.
0
Mark
Top achievements
Rank 1
answered on 10 May 2013, 07:35 PM
Maria,
   Is this still true? You wrote this 3 years ago. Does RadAjaxManager now have Error Handling?

Thank you

Mark
Tags
Ajax
Asked by
Luis Silva
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Mark
Top achievements
Rank 1
Share this question
or