Hi guys
Sorry if this has been asked many times before - I did a quick forum search and couldn't find anyone who had asked or answered this before.
I'm having trouble with where to position a ScriptManager control when wanting to put an Accordion control in a User Control for re-use across multiple master pages.
If I place the ScriptManager in a MasterPage, the UserControl gives an error message along the lines of "The control with ID 'accMenu_AccordionExtender' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it" But if I put it in the UserControl it complains about only one ScriptManager being allowable per page. This error obviously disappears if I take the ScriptManager out of the MasterPage, but I would much rather have the one ScriptManager allowable in the MasterPage, and presumably this error will re-occur if I have two UserControls in a page that both have a ScriptManager in?
So far, Google (or should that be Live Search?) has only hinted at the possibility of placing a ScriptManagerProxy in the page, but that doesn't seem to have solved the problem. The code for the ScriptManagerProxy I'm putting in the usercontrol is:
<asp:ScriptManagerProxy ID="scriptManagerProxy" runat="server"></asp:ScriptManagerProxy>
Has anyone solved this problem?
Hope this is clearer than ill-informed gobbledygook, but please ask further questions if there's anything unclear.
Thanks
Jon