How can I save the configuration of a web part for a certain web part page in SharePoint?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the UI you can export the web part. Edit the page, click the drop-down on the web part, and select Export. This allows you to save the web part’s XML configuration so it can be uploaded elsewhere.
You can also programmatically export the web part using the SPLimitedWebPartManager.ExportWebPart() method.
For those web parts that do not allow an export, enumerate the web part properties programmatically. Here is a complete list of all web part members.