asp.net.ph

AdRotator.Target Property

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.

Syntax


Inline <asp:adrotator target = strTarget | '_blank' | '_parent' | '_self' | '_top' ... >
Script AdRotator.Target = [ = strTarget | '_blank' | '_parent' | '_self' | '_top' ]

Property Value


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.

Remarks

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.

Example

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" />
See Also

AdRotator Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph