I've built an ASP.NET composite control which includes several asp label controls, two textbox controls and a button control. The composite control functions perfectly - without having any of the above controls ajaxified - in a parent page that already has a RadAjaxManager.
Now I want to ajaxify the composite control. I followed the various examples and sample code, but no matter which way I arrange the code, when I ajaxify the the button, two text boxes and a label in the composite control and click the button, I always get alternating full postback and asynchronous (partial) postback. (So I get the effect I want every other button click.)
// in CreateChildControls I added:
RadAjaxManager objTelerikAjaxManager = RadAjaxManager.GetCurrent(Page);
if (objTelerikAjaxManager == null)
{
objTelerikAjaxManager = new RadAjaxManager();
objTelerikAjaxManager.ID = "RadAjaxManager1";
Controls.Add(objTelerikAjaxManager);
}
.
.
// create controls and add to collection, then:
.
.
objTelerikAjaxManager.AjaxSettings.AddAjaxSetting(objFELoginControlButtonLogin, objFELoginControlButtonLogin);
objTelerikAjaxManager.AjaxSettings.AddAjaxSetting(objFELoginControlButtonLogin, objFELoginControlLabelMessage);
objTelerikAjaxManager.AjaxSettings.AddAjaxSetting(objFELoginControlButtonLogin, objFELoginControlTextBoxUser);
objTelerikAjaxManager.AjaxSettings.AddAjaxSetting(objFELoginControlButtonLogin, objFELoginControlTextBoxAppID);
What am I missing and what should I check? Is there an alternative recommendation for placing the above code blocks?
Thanks