ASP.NET AdRotator TargetProperty
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.
|
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>
<asp:AdRotator id="ad1" runat="server"
AdvertisementFile="Ad1.xml" target="_blank" />
</form>
Demo Example »
AdRotator Control Other Extensions