AdRotator Control
Previous | Home | Next |
The AdRotator control is used to display a sequence of ad images. This control uses an XML file to store the ad information. The XML file must begin and end with antag. Inside the tag there may be several tags which defines each ad. The predefined elements inside the tag are listed below: The path to the image file The URL to link to if the user clicks the ad An alternate text for the image A category for the ad The display rates in percent of the hits
Specifies the path to the XML file that contains ad information. Specifies a data field to be used instead of the Alt text for an ad. Specifies a data field to be used instead of the ImageURL attribute for an ad. Specifies a filter to limit ads after categories. Specifies a data field to be used instead of the NavigateUrl attribute for an ad.
AdRotator Design ************************************************************************** *************************** <%@ Page Language="C#" AutoEventWireup="true" CodeFile="AdRotator.aspx.cs" Inherits="_Default" %>***************************************************************** ****************************************** AdRotetor.XML *********************************************************************AdRotator
Previous | Home | Next |