AdRotator Target Property


AdRotator Control AdRotator Control

Definition and Usage

The Target property is used to set or return where to open the advertisement URL.

Syntax

<asp:AdRotator Target="target" runat="server" />

Attribute Description
target A string that specifies where to open the target URL.
  • _blank - the target URL will open in a new window
  • _self - the target URL will open in the same frame as it was clicked
  • _parent - the target URL will open in the parent frameset
  • _top - the target URL will open in the full body of the window


Example

Example

Set a target window for an AdRotator (Check the "Try-It-Yourself" to see the XML file"):

<form runat="server">
<asp:AdRotator id="ad1" runat="server"
AdvertisementFile="Ad1.xml" target="_blank" />
</form>

Show example »


AdRotator Control AdRotator Control

Color Picker

colorpicker