www.gibmonks.com

Main Page

  Previous Section Next Section

AdCreatedEventArgs

System.Web.UI.WebControls (system.web.dll)sealed class

This class supplies additional information to the AdRotator.AdCreated event. This information is drawn from the corresponding entry in the XML file defining the advertisements for the AdRotator control. In addition, the AdProperties property provides a read-only collection that provides all properties of the current advertisement.

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;.

public sealed class AdCreatedEventArgs : EventArgs {
// Public Constructors
   public AdCreatedEventArgs(System.Collections.IDictionary adProperties);
// Public Instance Properties
   public IDictionary AdProperties{get; }
   public string AlternateText{set; get; }
   public string ImageUrl{set; get; }
   public string NavigateUrl{set; get; }
}

Hierarchy

System.Object System.EventArgs AdCreatedEventArgs

Passed To

System.Web.UI.MobileControls.AdRotator.OnAdCreated( ), AdCreatedEventHandler.{BeginInvoke( ), Invoke( )}, AdRotator.OnAdCreated( )

      Previous Section Next Section