From http://www.w3schools.com (Copyright Refsnes Data)

ASP.NET Target Property


AdRotator Control Reference Complete AdRotator Control Reference

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

The following example sets 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 Reference Complete AdRotator Control Reference

From http://www.w3schools.com (Copyright Refsnes Data)