asp.net.ph

AdCreatedEventArgs Class

System.Web.UI.WebControls Namespace


Provides data for the AdCreated event.

AdCreatedEventArgs Class Members

Collapse   Constructors

Visibility Constructor Parameters
public AdCreatedEventArgs ( IDictionary adProperties )

Collapse   Properties

Visibility Name Value Type Accessibility
public AdProperties IDictionary [ Get ]
public AlternateText String [ Get , Set ]
public ImageUrl String [ Get , Set ]
public NavigateUrl String [ Get , Set ]

Remarks

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.

Example

The following example demonstrates how to specify and code a handler for the AdCreated event, and is basically implemented as follows.

  1. The handler is passed an AdCreatedEventArgs object that contains the event data, which we use here to obtain the AdProperties object.
  2. The AdProperties object, which contains all the properties for the currently displayed advertisement, is then bound to a Repeater control.
  3. 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 

See Also

AdRotator   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