GenericWebPart.TitleUrl Property
Assembly: System.Web (in system.web.dll)
public: virtual property String^ TitleUrl { String^ get () override; void set (String^ value) override; }
/** @property */ public String get_TitleUrl () /** @property */ public void set_TitleUrl (String value)
public override function get TitleUrl () : String public override function set TitleUrl (value : String)
Not applicable.
Property Value
A string that represents a URL to more information about a GenericWebPart control. The default value is an empty string ("").When you assign a URL to the TitleUrl property, the title of the control becomes a link. This property provides a convenient way for end users to access additional information about a control. The additional information could include copyright data, contact data, details about the creator of the control, or a summary of the purpose of a control.
This property overrides the base property so that you can access the property on the child control as if it were a true WebPart control.
You can set values for the property on your control in the declarative markup of a Web page, as well as programmatically. To provide a default value for the property whenever the control is used, you can implement the IWebPart interface.
The following code example demonstrates declarative and programmatic use of the TitleUrl property. The complete source code for the example is found in the Example section of the GenericWebPart overview topic.
The first part of the code example shows how the TitleUrl property is set declaratively on a server control within a WebPartZone control.
The second part of the code example demonstrates how to access the property programmatically to display its value in a label.
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.