System.Web.UI.WebControls.AdRotator.OnAdCreated Method

Raises the AdRotator.AdCreated event for the System.Web.UI.WebControls.AdRotator control.

Syntax

protected virtual void OnAdCreated (AdCreatedEventArgs e)

Parameters

e
An System.Web.UI.WebControls.AdCreatedEventArgs that contains event data.

Remarks

The AdRotator.AdCreated event is raised on the server after the System.Web.UI.WebControls.AdRotator control is created, but before the page is rendered. If the AdRotator.AdvertisementFile property is set, the AdRotator.AdCreated event is raised after an advertisement has been selected by the System.Web.UI.WebControls.AdRotator control.

Raising an event invokes the event-handling method through a delegate. For more information, see How to: Consume Events in a Web Forms Application.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0