
定义和用法
The Target 属性用于设置或返回在何处打开广告的 URL。
语法
<asp:AdRotator Target="
target" runat="server"
/>
属性 | 描述 |
---|---|
target | 字符串值,规定在何处打开目标 URL。
|
实例
实例
为 AdRotator 设置了目标窗口(在"尝试一下"实例中查看 XML 文件):
<form runat="server"> <asp:AdRotator id="ad1" runat="server" AdvertisementFile="Ad1.xml" target="_blank" /> </form>
