My problem is my call to ajaxRequestWithTarget is doing a repost when I expect an ajax update.
I have a master page containing RadAjaxManager, and a content page containing two user controls, uc1 and uc2.
uc1 has a ajax-enabled asp:Button and a text box inside an asp:Panel. Clicking on uc1.Button1 does the right thing, an ajax update without a full page refresh. My Page_Load:
protected void Page_Load(object sender, EventArgs e) |
{ |
RadAjaxManager radAjaxManager = RadAjaxManager.GetCurrent(Page); |
radAjaxManager.AjaxSettings.AddAjaxSetting(uc1.FindControl("Button1"), uc1.FindControl("Panel1"), null); |
} |
I have a list box in uc2. When an item in uc2.List1 is clicked, I want to simulate clicking uc1.Button1. My javascript code looks something like:
var ajaxManager = $find('<%= RadAjaxManager.GetCurrent(Page).ClientID %>'); |
var buttonID = '<%= GetUc1Control("Button1").UniqueID %>'; |
ajaxManager.ajaxRequestWithTarget(buttonID, ''); |
The call to ajaxRequestWithTarget is correctly updating the content of uc1, but it is causing a refresh of the entire page. How do I fix this problem?