Search code examples
asp.net-ajaxsharepoint-2010web-partsajaxcontroltoolkit

Problem integrating ASP.net Ajax user control as Web Part in Sharepoint 2010


I created a user control in Visual Studio in .Net framework 3.5 and using Ajax Toolkit 3.5 and then added the Star Rating Ajax control to the user control.

Now I want to add this user control as a webpart to a sharepoint 2010 website. Since the user control already has a asp:ToolkitManager to do the work of script manager, adding this webpart to a page on the MOSS site gives a lot of errors. Currently, I have retained the asp:ToolkitManger in the user control.

The error I get whenever I open the MOSS page containing the user control is "PageRequestManager cannot be initialized more than once".

I have no idea how to go about it. Any suggestions are welcome.

EDIT: I believe the sharepoint master page has a script manager of its own. I can't remove it because the other pages will suffer. How do I modify the user control in Visual Studio so that it includes the ajax update panel but refers to the sharepoint script manager.


Solution

  • Perhaps the parent control or page already has ScriptManager defined...