I'm loading a user control in a service handler (.ashx). In the user control I have a few collapseable panel extenders, a filter text box extender and a modal popup extender.
We're using a master page that has a ScriptManager defined in the layout.
Here's some code:
public void ProcessRequest(HttpContext context)
{
HtmlTextWriter writer = new HtmlTextWriter(new System.IO.StringWriter());
MyNamespace.Web.PageBase pageBase = new MyNameSpace.Web.Base.PageBase();
pageBase.CancelVerifyRenderingInServerForm = true;
pageBase.EnableEventValidation = false;
ItemRatesCtl itemRatesCtl = (ItemRatesCtl)pageBase.LoadControl("/Booking/Rates/ItemRatesCtl.ascx");
itemRatesCtl.RenderControl(writer);
}
On the RenderControl execution:
The control with ID 'CollapsiblePanelExtenderRentBreakdown' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
I;ve tried putting a ScriptManagerProxy control in the user control and registering the service (which BTW get's called on page load). That does not help...same error. I tried registering the extenders with the Master ScriptManager when the control loads but then it tells me that the controls are already registered.
We're doing this type of thing a bunch of places but this is the fist that has a control using AJAX toolkit extenders.
Thanks,
Tom