Thursday, February 25, 2010

Multiple Web Part instances on page?

When adding a second instance of a webpart:

"Unable to add selected web part(s).
xxx Web Part: A Web Part with this ID has already been added to this page.

Solution:
- Remove ID attribution for main web part class (don't do this.ID="...")
- Send webpart id as editorpart parameter and add it to the editorpart id (do editorpart->this.ID="editorpart"+webpartid)





http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/03600775-2e0d-426c-9be4-e5db77588d72

No comments:

Post a Comment