Joe's profileJoe Shepherd - Adventure...PhotosBlogListsMore ![]() | Help |
|
January 11 SharePoint WebPart Property AttributesI wanted to put this information out there because it was not well published when I was building WebParts for the first time. When you build a WebPart in MOSS 2007 you have the ability to expose the public properties of the WebPart in the editor pane of the WebPart page. This allows you to set some administrative values for the WebPart behind the scenes. In order to make this happen you have to tag the property as being Web Browsable. Unfortunately most of the documentation only gives information on the WebBrowsable and Personalizable attributes. However there are a few others that you might find valuable to know about. Some of the other attributes are listed below along with explanations and links to further resources. WebBrowsable [WebBrowsable(True)] WebPartStorage [WebPartStorage(Storage.Personal)] Personalizable [Personalizable(true)] WebDispayName [WebDisplayName(string)] WebDescription [WebDescription(string)] SPWebCategoryName [SPWebCategoryName(string)] ConnectionProvider [ConnectionProvider(string)] ConnectionConsumer [ConnectionConsumer(string)] Below is an example of how to use these attributes in your WebPart code. [WebBrowsable(true), Happy coding! Comments (6)
Joe Shepherd
has turned off comments on this page.
Trackbacks (1)The trackback URL for this entry is: http://joeshepherd.spaces.live.com/blog/cns!9AE2097A4A610B63!302.trak Weblogs that reference this entry
|
|
|