System.Web.UI.WebControls.AdCreatedEventArgs.NavigateUrl Property

Gets or sets the Web page to display when the System.Web.UI.WebControls.AdRotator control is clicked.

Syntax

public string NavigateUrl { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the AdCreatedEventArgs.NavigateUrl property to specify the Web page to display when the System.Web.UI.WebControls.AdRotator control is clicked. A common use for this property is to redirect the navigation, when the System.Web.UI.WebControls.AdRotator control is clicked, to a page that can count the number of times the user clicked the advertisement before proceeding to the destination URL.

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

Note:

If you use an advertisement file and specify a relative URL for this property, the URL is relative to the directory that the advertisement file is located in. If you set this property directly with a relative URL, instead of using the advertisement file, the URL is relative to the directory of the page or user control that contains the System.Web.UI.WebControls.AdRotator control.

Requirements

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