WebPartManager.GetDisplayTitle Method
.NET Framework 3.0
Gets a string containing the value for the DisplayTitle property of a WebPart control.
Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
protected String GetDisplayTitle ( WebPart webPart )
protected internal function GetDisplayTitle ( webPart : WebPart ) : String
Not applicable.
Parameters
- webPart
The control for which the method returns the value of DisplayTitle.
Return Value
A string that contains the calculated value of DisplayTitle for webPart.| Exception type | Condition |
|---|---|
| webPart is a null reference (Nothing in Visual Basic). | |
| webPart is not in the Controls collection. |
Gets the calculated value of the DisplayTitle property for webPart. When developers do not assign a value to the Title property of a WebPart control, this method produces the value to display as the title. The calculated value for untitled controls consists of a number appended to a string, with the number indicating a control's sequence within the current zone.
Notes to Inheritors: This method can be overridden to change how the default display title is calculated.Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: