Latest web development tutorials

ASP.NET AdRotator Target property

AdRotator control AdRotator control

Definition and Usage

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

grammar

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

属性 描述
target 字符串值,规定在何处打开目标 URL。
  • _blank - 在新窗口中打开目标 URL
  • _self - 在被点击的同一框架中打开目标 URL
  • _parent - 在父框架集中打开目标 URL
  • _top - 在整个窗口主体中打开目标 URL


Examples

Examples

Set a target for the AdRotator window ( "try" to view the XML instance document):

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

The demonstration >>


AdRotator control AdRotator control