can't display image in asp.net web app.

  • Thread starter Thread starter hanna
  • Start date Start date
H

hanna

My image will only display when I do an F5 on my local
machine. When I'm on another machine and enter the url,
the image is not displayed. I get a box with a red X in it.

here's my code for the image:
</asp:DataGrid><IMG style="Z-INDEX: 101; LEFT: 87px;
POSITION: absolute; TOP: 231px" alt=""
src="file:///C:\Inetpub\wwwroot\test\images\creditx.gif"
id="Img3">

help!!
 
you cant use file as the source because it is looking on the machine that is
browsing the page. This has nothing to do with ASP.NET, its just basic
HTML.
Change your src to src="images/creditx.gif"
 

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

Back
Top