System.Web.UI.WebControls Namespace AdRotator Class
Sets or retrieves the browser window or frame that loads the Web page associated with the selected advertisement.
Inline |
<asp:adrotator target = strTarget | '_blank' | '_parent' | '_self' | '_top' ... > |
Script |
AdRotator.Target = [ = strTarget | '_blank' | '_parent' | '_self' | '_top' ] |
strTarget |
String specifying the name of the browser window or frame that displays the contents of the associated Web page. |
The property is read/write with no default value.
Use the Target property to specify the target window or frame that displays the contents of the Web page linked to when the currently displayed advertisement in the AdRotator is clicked.
Values must begin with a letter in the range of A-Z or a-z, except for these special values which begin with an underscore:
_blank |
Renders the content in a new, unframed window. |
_parent |
Renders the content in the immediate frameset parent. |
_self |
Renders the content in the current frame. |
_top |
Renders the content in the full, unframed window. |
If there is no frame or window that matches the specified target, a new window is opened for the link.
The following example demonstrates how to declaratively set the Target property at design time.
<asp:adrotator id = "myAds" runat = "server" target = "_blank"
advertisementfile = "myAds.xml" />
AdRotator Members