Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm having some trouble getting my image to display on my temp web page. When I open the local file the image displays fine, but when I open it in the ftp server it doesn't display. Both the local and the server public_html folders are identical in content (in files and sub-folders). I think it has something to do with why the temp address (http://217.199.187.250/bml-construction.com)can't open either. Some help would be appreciated, I'm truly stumped. The tag is written as displayed
<img src= "images/dolphin.jpg"width=100/>
Posted
Updated 31-Aug-15 1:22am
v2
Comments
Rashmi Sutar 3-Sep-15 2:07am    
Hi,
I think you need to use / before images.
<img src= "/images/dolphin.jpg"width=100/>
Veeral Jani 5-Sep-15 3:04am    
you need to use this
<img src = "~/images/dolphin.jpg" width="100" />

or

<img src = "/images/dolphin.jpg" width="100" />
Member 11947606 6-Sep-15 10:41am    
Thank you!

1 solution

XML
you need to use this
<img src = "~/images/dolphin.jpg" width="100" />

or

<img src = "/images/dolphin.jpg" width="100" />
 
Share this answer
 

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