ASP.NET AdRotator TargetProperty


AdRotator 控件AdRotator Control

Definition and Usage

The Target property is used to set or return where to open the ad's URL.

Syntax

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

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


Example

Example

Set the target window for AdRotator (view the XML file in the "Try it" example):

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

Demo Example »


AdRotator 控件AdRotator Control Other Extensions