System.Web.UI.WebControls.AdCreatedEventArgs.AlternateText Property

Gets or sets the alternate text displayed in the System.Web.UI.WebControls.AdRotator control when the advertisement image is unavailable. Browsers that support the ToolTips feature display this text as a ToolTip for the advertisement.

Syntax

public string AlternateText { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the AdCreatedEventArgs.AlternateText property to specify the text to display if the image specified in the AdCreatedEventArgs.ImageUrl property is not available. In browsers that support the ToolTips feature, this text also appears as a ToolTip for the advertisement.

A separate XML file contains the properties for the displayed advertisement. The System.Web.UI.WebControls.AdRotator control automatically sets the AdCreatedEventArgs.AlternateText property with the corresponding alternate text entry in the XML file. This property can also be used to programmatically set the alternate text.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0