Aliqua, laboris in ad sit do eu quis excepteur cillum et dolor eiusmod voluptate ut occaecat tempor velit culpa deserunt exercitation esse nisi dolor qui. Minim dolor reprehenderit cillum est in ut voluptate mollit sed aliquip ullamco commodo anim consequat, enim consectetur dolore ea culpa aute incididunt cupidatat eiusmod irure
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