AdCreatedEventArgs

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( )



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net