Posted: 7/30/2011
<asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/xml/XMLAdrotator.xml" Height="200px" Width="300px" />
xml file is
<?xml version="1.0" encoding="utf-8" ?><Advertisements > <Ad > <ImageUrl>~/Image/Bluehills.jpg </ImageUrl> <AlternateText>Childhood</AlternateText> <Impressions>1</Impressions> </Ad> <Ad > <ImageUrl> ~/Image/Sunset.jpg </ImageUrl> <AlternateText>Beak</AlternateText> <Impressions>1</Impressions> </Ad> <Ad > <ImageUrl> ~/Image/Waterlilies.jpg </ImageUrl> <AlternateText>Bird</AlternateText> <Impressions>1</Impressions> </Ad> <Ad > <ImageUrl> ~/Image/Winter.jpg </ImageUrl> <AlternateText>Circle And Square</AlternateText> <Impressions>1</Impressions> </Ad> </Advertisements>
Please tell me why images are not showing up while alternate text shows up properly
Hi Sanjit,
First, XML tags are case sensitive. Second, you have spavce in you xml for <ImageUrl>~/Image/Bluehills.jpg </ImageUrl>, try to remove the space.
Best Regards,
Gjorgji
Posted: 7/31/2011
Yes removing space has solved the problem. Thanks a lot sir
Posted: 9/30/2011
This control uses an XML file to store the ad information. The XML file must begin and end with an <Advertisements> tag. Inside the <Advertisements> tag there may be several <Ad> tags which defines each ad...
This is very good control of asp.net.XML is case-senstive..