JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Using the AdRotator Class

You use the ad rotator control to display an advertisement banner in a Web page. This control is supported with the AdRotator class, and here is the inheritance hierarchy of that class:

Object
   Control
      WebControl
         AdRotator

You can find the notable public properties of AdRotator objects in Table 18.14 and their events in Table 18.15. (This class has no non-inherited methods.) Note that as with other Web server controls, I am not listing the notable properties, methods, and events this class inherits from the Control and WebControl classes—you can find them in Chapter 15, Tables 15.1 to 15.5.

Table 18.14: Noteworthy public properties of AdRotator objects.

Property

Means

AdvertisementFile

Gets/sets the XML file with information on the ads and ad banners.

KeywordFilter

Gets/sets a keyword to filter for types of ads.

Target

Gets/sets the name of the browser window or frame that displays linked-to Web pages when a banner is clicked.

Table 18.15: Noteworthy public events of AdRotator objects.

Event

Means

AdCreated

Occurs before the Web page is displayed, allowing you to customize ad displays.

Previous Section Next Section




JavaScript Editor Free JavaScript Editor     JavaScript Editor