ASP.NET Target Property
Complete AdRotator Control Reference
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
The following example sets 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>
|
Try-It-Yourself Demos
Set new Target window for an AdRotator control
Complete AdRotator Control Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|