First, I have a user control called 'TestControl' that uses a RadToolTipManager in it. This tool tip will call another user control that doesnt really need to be explained. I want to be abled to 'LoadControl' from the code behind.
By doing this, it works just fine so the 'TestControl' works and the RadToolTip works and all that.
<%@ Register src="Control/TestControl.ascx" tagname="Table" tagprefix="uc1" %>
<
uc1:TestControlID
=
"TestControl1"
runat
=
"server"
/>
However, doing using 'LoadControl', I am getting the wrong sequence of events. (which I need to be able to 'LoadControl')
UserControl userControl = (UserControl)this.LoadControl("~/Control/TestControl.ascx");
userControl.ID = "asdfasdf";
this.Panel1.Controls.Add(userControl);
The Page_Load executes the above, then the tooltip pops up (before the OnAjaxUpdate) and loads whatever the tooltip has, then the OnAjaxUpdate occurs. I need the OnAjaxUpdate to occur before it loads the pop up. Any Suggestions?