System.Web.UI.WebControls Namespace
Provides data for the AdCreated event.
The AdCreated event is raised whenever the AdRotator renders an advertisement on the page.
For a list of initial property values for an instance of AdCreatedEventArgs, see the AdCreatedEventArgs constructor.
For more information about handling events, see Web Forms Events Model.
The following example demonstrates how to specify and code a handler for the AdCreated event, and is basically implemented as follows.
- The handler is passed an AdCreatedEventArgs object that contains the event data, which we use here to obtain the AdProperties object.
- The AdProperties object, which contains all the properties for the currently displayed advertisement, is then bound to a Repeater control.
- The Repeater control is then set up to display the image file, the target URL, and the alternate text associated with the advertisement.
Show me
AdRotator AdCreatedEventHandler