X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook