i created xml file below one
xml version="1.0" encoding="utf-8" ?><
Advertisements><
Ad><
ImageUrl>C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water lilies.jpg
ImageUrl><
NavigateUrl>http://www.asp.netNavigateUrl><
AlternateText>image1
AlternateText><
Keyword>advertisement one
Keyword><
Impressions>30000
Impressions> Ad><
Ad><
ImageUrl>C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Sunset.jpg
ImageUrl><
NavigateUrl>http://www.asp.netNavigateUrl><
AlternateText>image2
AlternateText><
Keyword>advertisement two
Keyword><
Impressions>20000
Impressions> Ad> Advertisements>and i take one adrotator control add this file to control and i execute this application but image is not appear in application.
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/XMLFile.xml" Height="100px" Style="z-index: 100; left: 200px; position: absolute; top: 200px" Width="700px" Target ="_self" />plz help me any one............
Blocked AccountPosted Apr 14, 2008, 1:09 AM
Main problem was space, which is in the ImageUrl. so remove the space and create the XML file like this.
xml version="1.0" encoding="utf-8" ?>
<Advertisements>
<Ad>
<ImageUrl>C:\Winter.jpgImageUrl>
<NavigateUrl>http://www.asp.netNavigateUrl>
<AlternateText>image1AlternateText>
<Keyword>advertisement oneKeyword>
<Impressions>30000Impressions>
Ad>
<Ad>
<ImageUrl>C:\Sunset.jpgImageUrl>
<NavigateUrl>http://www.asp.netNavigateUrl>
<AlternateText>image2AlternateText>
<Keyword>advertisement twoKeyword>
<Impressions>20000Impressions>
Ad>
Advertisements>
Happy Coding!!