Image not appearing using ad rotator

I am trying to use the adrotator control on a aspx webform.  I am using an XML file to supply the info to the contol.  The XML file is as follows:

<Advertisements>
  <Ad>
    <ImageUrl>
      ~/images/ad1.gif
    </ImageUrl>
    <NavigateUrl>
      URL
    </NavigateUrl>
    <AlternateText>
      Text
    </AlternateText>
    <Keyword>
      Keyword
    </Keyword>
    <Impressions>
      Weight
    </Impressions>
  </Ad>
</Advertisements>


The problem that i am having is that the image does not appear on the page.  The alt text, & URL appears but the images does not.  Does anybody have any idea what i am missing
?
Mike_StevensAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gamebitsCommented:
If you right click on the space reserved for the image to show and click property you should have the address of the image or at least where the script is looking for it, make sure the image you want to display is at that location.

Gamebits
0
UnexplainedWaysCommented:
Do you need the '~' in    ~/images/ad1.gif
0
Mike_StevensAuthor Commented:
The '~' is there.   I even tried the complete path
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

gamebitsCommented:
If you take the complete path and put in the address bar does the picture shows.

Gamebits
0
Mike_StevensAuthor Commented:
yes
0
gamebitsCommented:
One more thing, you open the page and the picture doesn't show, now look at the source code of the page, is the address in the img tag being written to the browser the way it should be?

Gamebits
0
Mike_StevensAuthor Commented:
This is what is shown when viewing the source

<a id="ctl00_ContentPlaceHolder1_AdRotator1" href="/domainname/
%20%20%20%20%20%20URL
%20%20%20%20" target="_top"><img src="/website folder/
%20%20%20%20%20%20ad1.gif
%20%20%20%20" alt="
      Text
    " style="border-width:0px;" /></a>
0
Mike_StevensAuthor Commented:
I figured it out.  The example XML file i found was showed the image as:

<ImageUrl>
images/ad1.gif
</ImageUrl>

When i changed the formatting to it works.  Must be something with the xml file format

<ImageUrl>images/ad1.gif</ImageUrl>
0
gamebitsCommented:
Yea! %20 is the ascii character for a blank space the way the code was written it added blank space to the url, consequently the url wasn't good anymore and the picture could not be found.

Gamebits
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gamebitsCommented:
Thanks for the points and the grade.

Gamebits
0
Mike_StevensAuthor Commented:
Thanks for the help
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.