Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET AdRotator Target Property

ASP.NET AdRotator Target Property


AdRotator Control AdRotator control


Definition and Usage

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

Syntax

/>

property Description
target A string value that specifies where the target URL is opened.
  • _blank - Open the target URL in a new window
  • _self - Open the target URL in the same frame that was clicked
  • _parent - Open the target URL in the parent frame set
  • _top - Open the target URL in the full window body
  • |

    Example

    Example

    Sets a target window for the AdRotator (see the XML file in the "Try it" example):

    AdvertisementFile="Ad1.xml" target="_blank" />

    Demo Example »


    AdRotator Control AdRotator control