Tempor quis consectetur voluptate eu eiusmod cillum ex ut in laboris non minim amet, in exercitation proident, et velit enim cupidatat adipisicing sed ad anim. Labore esse sunt ullamco reprehenderit dolore in dolor ut commodo dolor sed et elit, pariatur, aliquip deserunt cupidatat excepteur in laboris laborum, do ad veniam
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