ASP.NET AdRotator AdvertisementFileProperty
AdRotator Control
Definition and Usage
The AdvertisementFile property is used to set or return the path to an XML file that contains advertisement data.
Syntax
<asp:AdRotator AdvertisementFile="path" runat="server" />
| Property | Description |
|---|---|
| path | String value that specifies the location of the XML file containing advertisement data. Possible values:
|
Example
Example
Declare an AdRotator (see the XML file in the "Try it Yourself" example):
<form runat="server">
<asp:AdRotator id="ad1" runat="server"
AdvertisementFile="Ad1.xml" />
</form>
<asp:AdRotator id="ad1" runat="server"
AdvertisementFile="Ad1.xml" />
</form>
Try it Yourself »
AdRotator Control Other Extensions