System.Web.UI.WebControls Namespace AdCreatedEventArgs Class
Returns a dictionary object that contains all the advertisement properties for the currently displayed advertisement.
Script |
[ IDictionary variable = ] AdCreatedEventArgs.AdProperties |
The property is read only with no default value.
The AdRotator automatically extracts the advertisement information from the XML file and stores the information in this property as a dictionary.
Additional information about an advertisement, such as a custom caption, may be provided in the advertisement XML file and accessed in the AdCreated event handler using this property.
The following example demonstrates how to retrieve the AdProperties dictionary for the currently displayed advertisement, and at the same time assign the object as the DataSource for a Repeater control, which we use to display the ad properties.
void myAdCreatedHandler ( Object src, AdCreatedEventArgs e ) {
adProps.DataSource = e.AdProperties;
adProps.DataBind ( );
}
Show me
AdCreatedEventArgs Members AdCreatedEventHandler AdRotator