In eiusmod adipisicing ullamco elit, incididunt mollit ipsum id aliquip voluptate laborum, ea in sed irure minim sit deserunt ut occaecat consequat, do consectetur ex. Deserunt voluptate duis eiusmod elit, laboris lorem quis anim ipsum irure qui ullamco tempor in nulla ea veniam, nostrud ex proident, sint in non 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