Step 1. Create a new website project and add a folder with name image and add 3 images in that. These three images will become our banners that we will load and rotate in Ad Rotator.
Step 2. Add a XML file with name AdRotatorFiles.xml and add the following code. Make sure images names are the images that you added in Step 1.
- <?xml version="1.0" encoding="utf-8" ?>
- <Advertisements>
- <Ad>
- <ImageUrl>~/images/1.jpg</ImageUrl>
- <NavigateUrl>http://www.varanasiworld.com/</NavigateUrl>
- <AlternateText>ASP.NET Logo</AlternateText>
- <Keyword>A</Keyword>
- <Impressions>Web Site</Impressions>
- <Caption>This is the caption for Ad#1</Caption>
- </Ad>
- <Ad>
- <ImageUrl>~/images/2.jpg</ImageUrl>
- <NavigateUrl>http://www.varanasiworld.com/</NavigateUrl>
- <AlternateText>teesting test</AlternateText>
- <Keyword>S</Keyword>
- <Impressions>Web Site</Impressions>
- <Caption>This is the caption for Ad#2</Caption>
- </Ad>
- <Ad>
- <ImageUrl>~/images/3.jpg</ImageUrl>
- <NavigateUrl>http://www.varanasiworld.com/</NavigateUrl>
- <AlternateText>www.neostream.net</AlternateText>
- <Keyword>S</Keyword>
- <Impressions>Web Site</Impressions>
- <Caption>This is the caption for Ad#3</Caption>
- </Ad>
- </Advertisements>

Join the conversation! Your thoughts help the community grow.