Where does the image go?

D

dgk

Basic image control question. How do I set the imageurl property? I
tried relative and I just get the red X, I tried absolute and that
returns a redX (works fine locally, just not over the web). The actual
address (say http://www.mysite.org/theimage.jpg) should point to an
image in the virtual IIS directory, in this case
D:/inetpub/wwwroot/mysite. www.mysite.org is actually a dyamic IP
address that is mapped via www.gotdns.org but I don't think that is
the problem.
 
K

Kevin Spencer

How about using the IP address of the server?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
D

dgk

How about using the IP address of the server?

Thanks. I did try that and it wasn't working either. Besides, it's a
dynamic IP address and I could never hardcode that. Oddly it doesn't
actually change for months but I can't plan on that. Of course, I have
to have gotdns.org remap the address anyway once it changes but I can
have that done automatically I think.

There was something else weird going on with the app anyway. I kept
viewing the source and the source did not reflect the page. That is, I
saw something about the browser not supporting frames and please
<CLICK HERE>. Nothing about the image or even the text on the webpage.
I had written a default.aspx just to redirect the user to the real
main page so I scrapped that approach and just looked through IIS
until I found where to set the actual first page as one of the
defaults and that worked fine. Then I trashed the first page and
started over just using the filename as the address (it is in the same
directory as the app) and it worked perfectly. So it wasn't the URL
that was bad, it was just something I had screwed up elsewhere.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top