AdRotator Control

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 an  tag. 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" %>





    AdRotator


    
***************************************************************** ****************************************** AdRotetor.XML ********************************************************************* ~/baby.jpg http://www.r4r.co.in r4r Site 50 R4R ~/logo.jpg http://www.r4r.co.in r4r Site 50 R4R
Previous Home Next