asp.net.ph

AdRotator Class

System.Web.UI.WebControls Namespace


Displays a randomly selected ad banner on a Web page.

AdRotator Class Members

Collapse   Constructors

Visibility Constructor Parameters
public AdRotator ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public AdvertisementFile String [ Get , Set ]
public AlternateTextField String [ Get , Set ]
public Font FontInfo [ Get ]
public ImageUrlField String [ Get , Set ]
public KeywordFilter String [ Get , Set ]
public NavigateUrlField String [ Get , Set ]
public Target String [ Get , Set ]
public UniqueID String [ Get ]

Collapse   Methods

Visibility Name Parameters Return Type
protected OnAdCreated ( AdCreatedEventArgs e ) Void
protected PerformSelect ( ) Void

Collapse   Events

Multicast Name Type
multicast AdCreated AdCreatedEventHandler

Remarks

Use the AdRotator control to display a randomly selected advertisement banner on the Web page. The displayed advertisement changes whenever the page refreshes.

Advertisement information is stored in a separate XML file. The XML file allows you to maintain a list of advertisements and their associated attributes. Attributes include the path to an image to display, the URL to link to when the control is clicked, the alternate text to display when the image in not available, a keyword, and the weight of the advertisement. In addition, custom attributes may also be included, such as a custom title.

As an alternative source of data to an XML file, it is possible to provide advertisement information through a call-back event. This event can also be used in combination with the XML file to extend the behavior of the AdRotator control, such as redirecting to another page. See the AdvertisementFile property for additional information on the file format.

A new advertisement is selected whenever the Web page refreshes. An Impressions attribute can be assigned to each advertisement, to control how often an advertisement is selected relative to the other advertisements in the advertisement file.

For examples illustrating use of this control, see the individual member types of this class. For syntax information, see AdRotator in ASP.NET Syntax for Web Controls.

See Also

AdCreatedEventArgs   AdCreatedEventHandler Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph