Irure exercitation ut in nisi aliqua, et dolore velit voluptate culpa id amet, consectetur dolor eu sint duis nostrud incididunt sunt proident, ipsum ullamco in. Consequat, qui dolore voluptate in veniam, officia reprehenderit aliqua, labore anim ut sit et incididunt velit ea ut id enim esse do nisi sint exercitation
Yeah, this will be replaced... But please enjoy the search!
This page is kind of under construction and there may be graphic glitches in some browsers and some html rendering might be a bit off. It'll get better.
How to set a webpart title and description programmatically
Suppose the headline says it all, here is the code to set the name and description of a webpart programmatically in vb.net.
Just a little snippet
PublicClass MyWebPart
Inherits Microsoft.SharePoint.WebPartPages.WebPart' Method to set WebPart title and description' By Bendsoft 2010PublicSub WebPartTitleDesc(ByVal title AsString, ByVal desc AsString)Me.Title= title
Me.Description= desc
TryMe.SaveProperties=TrueCatch ex As Exception
Me.Controls.Add(New System.Web.UI.LiteralControl(ex.Message))EndTryEndSub
Protected OverridesSub CreateChildControls()' Set the Name of the web partMe.WebPartTitleDesc("MyWebPart List Name", "MyWebPart Description")EndSubEndClass
No magic really, just make sure to call the method WebPartTitleDesc from the CreateChildControls