简体   繁体   中英

Sharepoint 2010 adding custom visual webpart in master page with editable properties

I can easily add webparts to my custom master page, but they appear static (in page edit mode)...Is there a way i can add custom webparts in master page with user editing its properties (through property bag)

Have you tried adding the WebBrowsable attribute to your WebPart? See http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.webbrowsableattribute.aspx

[Personalizable(), WebBrowsable(), WebDisplayName("My WebPart"), WebDescription("This is my editable WebPart")]

Sadly In master page, visual web-part is not editable as they dont exist in web part zone, so now we use user control as delegate control.

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