简体   繁体   中英

Configure the WebPart before add it to a page in the SharePoint 2010

I have an issue: gather configuration of the WebPart before add it to a page. For instance, the Silverlight Web Part has the same behaviour. It show modal dialog with asking to enter path to .xap file.

The enviroment is SharePoint Foundation/Server 2010.

I hope that you has already solved this problem. Please share you solution, whever is has been solved or not.

Thanks.

Web parts properties and configuration are stored in the web parts .dwp file which is just an xml file.

You can manually setup your web part then export the .dwp file via the web part menu. If you examine it in a text editor you will be able to identify the configuration.

You can then import the pre-configured web parts .dwp file using the Add new web part link (can't give you exact instructions as you didn't specify SharePoint 2007 or 2010) or you can import it into the web part gallery so it will be automatically used with "Add new web part"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM