Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET AdRotator AdvertisementFile Property

ASP.NET AdRotator AdvertisementFile Property


AdRotator Control AdRotator control


Definition and Usage

The AdvertisementFile property is used to set or return the path of the XML file that contains the advertisement data.

Syntax

/>

property Description
path A string value that specifies the location of the XML file containing the advertisement data.

Possible values:

  • Absolute path (e.g. http://www.w3cschool.cc/ads/bigad.xml)
  • Virtual root path (e.g. ~/ads/bigad.xml)
  • Relative path (e.g. /ads/bigad.xml)
  • |

    Example

    Example

    Declare an AdRotator (see the XML file in the "Try it" example):

    AdvertisementFile="Ad1.xml" />

    Demo Example »


    AdRotator Control AdRotator control