
AdRotator | 825
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
One use of the AdCreatedEventArgs class and AdRotator.AdCreated event is to update a Web
Forms page to correspond with the current advertisement. For example, you could use
code like this: Sponsor.Text = "Visit our sponsor at" & e.NavigateURL;.
Hierarchy
System.Object ➝ System.EventArgs ➝ AdCreatedEventArgs
Passed To
System.Web.UI.MobileControls.AdRotator.OnAdCreated( ), AdCreatedEventHandler.
{BeginInvoke( ), Invoke( )}, AdRotator.OnAdCreated( )
AdCreatedEventHandler
System.Web.UI.WebControls (system.web.dll)
serializable
delegate
This delegate defines the signature required for the AdRotator.AdCreated event handler.
Associated Events
System.Web.UI.MobileControls.AdRotator.AdCreated( ), AdRotator.AdCreated( )
AdRotator
System.Web.UI.WebControls (system.web.dll)
disposable
class
The AdRotator class allows you to provide one of the hallmarks of the Internet: banner
ads. The AdRotator randomly chooses a different graphic to display every time the page is
refreshed by reading from a list of entries specified in an XML file (and referenced by
the AdvertisementFile property). The XML file specifies details like image URL, the link
URL, and an “impressions” value that allows you to weigh an advertisement so that it
is displayed more or less frequently than others ...