I am solving this problem: I need to use title of webPart at user control, but Ireally don't know how I can get it.At visual studio 2008 I made two project (WSPBuilder - webPart feauture, ASP.NETweb application - user control). Web part wrap the user control. I use thistutorial for this: greggalipeau.com/category/sharepoint/wspbuilder/Problem is I can't simply make a new instance of webPart in userControl and useit's title. I am really lost at this point.configuration(Windows server 2008 R2 x64, SharePoint 2007)
Here's one way to do it:-In your .ascx control, create a hidden label control.-Create a public property which gets and sets the value of this hidden label.-When you instantiate the .ascx from your web part, set this public propertywith the web part title.
Normally, your web part code inherits from the web part class, likeclass mywebpart : WebPartThen the webpart title becomes an attribute of your class. To use it, just referto it asstring _myTitle = this.Title;