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