
定义和用法
AdvertisementFile 属性用于设置或返回包含广告数据的 XML 文件的路径。
语法
<asp:AdRotator AdvertisementFile="
path" runat="server"
/>
属性 | 描述 |
---|---|
path | 字符串值,规定包含广告数据的 XML 文件的位置。 可能的值:
|
实例
实例
声明一个 AdRotator(在"尝试一下"实例中查看 XML 文件):
<form runat="server"> <asp:AdRotator id="ad1" runat="server" AdvertisementFile="Ad1.xml" /> </form>
