Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello friends,

I am stuck with adrotator, though i have successfully managed to use adrotator in website but problem is that my image is blank and is not getting displayed can u guys suggest me reason where i am making mistake ?
Below is my code :

XML
<?xml version="1.0" encoding="utf-8" ?>
<Advertisements>
  <Ad>
    <ImageUrl>~/images/google-hummingbird.jpg</ImageUrl>
    <NavigateUrl>http://google.com</NavigateUrl>
    <AlternateText>Please visit http://www.Google.com</AlternateText>
    <Impressions>10</Impressions>
    <Keyword>Google</Keyword>
  </Ad>

  <Ad>
    <ImageUrl>~/images/images.jpg</ImageUrl>
    <NavigateUrl>http://youtube.com</NavigateUrl>
    <AlternateText>Please visit http://www.youtube.com</AlternateText>
    <Impressions>10</Impressions>
    <Keyword>Youtube</Keyword>
  </Ad>

  <Ad>
    <ImageUrl>~/images/images2.jpg</ImageUrl>
    <NavigateUrl>http://yahoo.com</NavigateUrl>
    <AlternateText>Please visit http://www.yahoo.com</AlternateText>
    <Impressions>10</Impressions>
    <Keyword>Yahoo</Keyword>
  </Ad>
</Advertisements>


VB
<asp:AdRotator ID="AdRotator1" runat="server"
                            AdvertisementFile="~/adsdata.xml" />
Posted
Comments
Sunasara Imdadhusen 21-May-14 1:59am    
You have to verify you image path. Can you please provide complete structure of your code
King Fisher 21-May-14 2:19am    
check your image Url

1 solution

thnx but it is solved long back by myself .Code was perfect just i had done mistake in naming the folder. Image was not getting displayed coz folder name was not correct.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 22-Sep-14 2:38am    
Not an answer. Please stop posting such content as "Solution". It is not and is considered as abuse.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900