Page refreshed in doPostBack

3 posts, 0 answers
  1. Velkumar
    Velkumar avatar
    85 posts
    Member since:
    Apr 2011

    Posted 15 Sep 2011 Link to this post

    Hello,

                    I have a aspx page with four ascx controls. In one of the control i have three buttons, one grid and one tree. i have used the radajaxmanager for ajax operation. In one of the button's clientclick function i called doPostBack function. I entire page is refreshed when i called the doPostBack function, ajax is not working in this situation. Please give the solution for this problem.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 15 Sep 2011 Link to this post

    Hello Velkumar,

    Try using ajaxRequest instead of _doPostBack function. Here is the needed approach.
    aspx:
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
    </telerik:RadAjaxManager>
    Javascript:
    var ajaxManager = $find("<%= RadAjaxManager1.ClientID %>");
    ajaxManager.ajaxRequest();
    C#:
    protected void RadAjaxManager1_AjaxRequest1(object sender, AjaxRequestEventArgs e)
       {
        //Do the action here
       }

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Velkumar
    Velkumar avatar
    85 posts
    Member since:
    Apr 2011

    Posted 16 Sep 2011 Link to this post

    Hello,

                      But I have using the RadAjaxManagerProxy in one of my control. I am not able to use ajaxrequest in the RadAjaxManager Proxy. Please give the solution for it.

    Thanks,
    Velkumar
Back to Top