PC Review


Reply
Thread Tools Rate Thread

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

 
 
hanna
Guest
Posts: n/a
 
      19th Nov 2003
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:
</aspataGrid><IMG style="Z-INDEX: 101; LEFT: 87px;
POSITION: absolute; TOP: 231px" alt=""
src="file:///C:\Inetpub\wwwroot\test\images\creditx.gif"
id="Img3">

help!!
 
Reply With Quote
 
 
 
 
Matt
Guest
Posts: n/a
 
      19th Nov 2003
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"
"hanna" <(E-Mail Removed)> wrote in message
news:1bc801c3aed5$129f9060$(E-Mail Removed)...
> 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:
> </aspataGrid><IMG style="Z-INDEX: 101; LEFT: 87px;
> POSITION: absolute; TOP: 231px" alt=""
> src="file:///C:\Inetpub\wwwroot\test\images\creditx.gif"
> id="Img3">
>
> help!!



 
Reply With Quote
 
Guest
Posts: n/a
 
      19th Nov 2003
I've changed it to this but to no avail:

src="http://localhost/test/images/creditx.gif"
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call an aspx that accepts parameters through HTTP POST and returns an image, and then display the image in my html? computer_guy Microsoft ASP .NET 3 20th Jul 2007 05:25 AM
Display image on form (image stored on web server)? deBassMan via AccessMonster.com Microsoft Access 1 4th Aug 2006 09:32 AM
Form an image from received bytes from server and display that image into the picturebox nishi.hirve@gmail.com Microsoft C# .NET 2 25th Jul 2006 07:17 AM
Display the image into picturebox without saving image files into Hard disk Dev Microsoft C# .NET 1 21st Jul 2003 10:14 PM
Display the image into picturebox without saving image files into Hard disk. Dev Microsoft Dot NET Framework Forms 0 21st Jul 2003 03:42 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 PM.