Add a Web Part to a Web Part Page programmatically

Add a Web Part to a Web Part Page programmatically

Post by Richard Li » Sun, 04 Jan 2004 04:01:08


I am trying to add a Web Part to a page programatically. I
know we can do this by using WebPartManager in Longhorn,
but I am not able to find similar class in Windows Server
2003 and .NET framework 1.1. Any suggestion is appreciated.

Thanks,
Richard
 
 
 

1. Web Part page and Web Part Zone and Web Part life-cycle.

2. Create Web Part Page through Web Part Pages Services?

We are trying to build a "Content Publishing Service", which will publish
web part pages (and their web parts) from one server to another server. This
is all at the portal level, not team sites level. The only two ways we could
think of to do this is to use the existing Web Part Pages Services, or build
our own service.

The SharePoint SDK tells us that we have everything we need in the existing
service, except one thing. How do we create a web part page on a different
server? The source area and destination area were created from the same
template, and so the SMARTPGS files are identical. The web part page would
have to be tied to the destination area's smart pages template files,
somehow.

Any thoughts, or other ideas??

Thanks.

Troy

3. MOSS 2007: Renaming a web part page makes all web parts invisible!!!

4. Refresh page or Web Part Data from a Web Part

5. Help - "Web Part Error" entry on Web Part Page Gallery

6. Problem Connecting Web Parts on Different Web Part Pages

7. How to get back deleted web parts and populate Web Part Page Galle

8. How to get back deleted web parts and populate Web Part Page G

9. Web Part Error in Web Part Page Gallery

10. Importing Web Part and displays as ErrorWebPart in "Manage Web Parts" page

11. display custom web part inside Page Viewer web part

12. Creating a Data View Web Part without unghosting a Web Part Page

13. Set the folder level when putting a document library web part on a web part page

14. impossible to delete a Site Image web part from a web part page

15. Custom Web Parts or Page Viewer Web Part