Professional Documents
Culture Documents
Events:
SelectionChanged
Rich Controls: AdRotator Control
• The AdRotator control is used to randomly select the
banner from the list that is specified in the external XML
file.
• Before using AdRotator control, you need to create the
XML file.
• Its ASP.Net tag is <asp:AdRotator />.
Rich Controls: AdRotator Control
Properties: Events:
AdvertisementFile AdCreated
AlternateTextField
ImageUrlField
NavigateUrlField
KeyWordFilter
Rich Controls: AdRotator Control
Steps to create the XML file for the adRotator control.
• Right click on the Website in the Solution Explorer.
• Select Add New Item from the Popup menu.
• Select XML File Template from the wizard.
• Give appropriate name and click on Add button.
• Now, write down ad information that you want to provide to
the AdRotator control.
Rich Controls: AdRotator Control
Following are the elements of XML file used for storing
information of advertisements:
• ImageUrl: The absolute or relative path of the image.
• NavigateUrl: The URL of a page to link to if the user clicks the ad.
• AlternateText: The text displayed in place of the image when the
image specified by the ImageUrl property is not available.
• Keyword: A category for the advertisement, so you can filter.
• Impressions: A number that indicates the importance of the ad. The
larger the number, the more often the ad is displayed.
Rich Controls: AdRotator Control
Rich Controls: AdRotator Control