So, I have a page with multiple user controls. There is a RadAjaxManager on the page. Each user control needs to make ajaxRequests from javascript, and I would like each control to handle that itself. Is this possible?
So, for instance, I have control1 with the following in its code behind:
protected void Page_Load(object sender, System.EventArgs e){ RadAjaxManager manager = RadAjaxManager.GetCurrent(Page); manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(Control1_AjaxRequest);}and control2 with
protected void Page_Load(object sender, System.EventArgs e){ RadAjaxManager manager = RadAjaxManager.GetCurrent(Page); manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(Control2_AjaxRequest);}and in javascript, control1 does
$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(dataString);and I end up in Control2_AjaxRequest rather than Control1_AjaxRequest.
Is what I'm trying to do possible? If so, how? I'm currently trying to do this by adding a RadAjaxPanel to each control and invoking ajaxRequest on it, but I'm running into some code block issues with this that weren't there with RadAjaxManager.
