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

Page refreshed in doPostBack

2 Answers 43 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Velkumar
Top achievements
Rank 2
Velkumar asked on 15 Sep 2011, 08:05 AM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 15 Sep 2011, 08:32 AM
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.
0
Velkumar
Top achievements
Rank 2
answered on 16 Sep 2011, 05:58 AM
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
Tags
Ajax
Asked by
Velkumar
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Velkumar
Top achievements
Rank 2
Share this question
or