Adding web parts to a web page

Another option is to export the web part definition in the web part hosting to a .webpart file.

The content can be used as-is in an elements.xml file


Adding web parts to a web page programmatically:

 

http://msdn.microsoft.com/en-us/library/bb871637.aspx

Leave a comment