Gets or sets the URL to an image used to represent a GenericWebPart control in the control's own title bar.
Assembly: System.Web (in System.Web.dll)
abstract TitleIconImageUrl : string with get, set override TitleIconImageUrl : string with get, set
Property ValueType: System.String
A string that represents the URL to an image. The default value is an empty string ("").
The property provides a way to associate an icon with a GenericWebPart control. The icon appears in the control's own title bar. For thematic consistency, application developers often make this icon similar to the image that represents the control in a catalog of Web Parts controls (the image referenced in the CatalogIconImageUrl property).
As it is implemented in the Web Parts control set, the property can be personalized by end users to change the image or icon that appears in a control's title bar.
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 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 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 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.