Problem displaying image
I have a image control in my C# ASP website... during development, i set the imageurl point to the image location, i can see the image view at my design stage, when i compile and run, it failed to show... can anyone help??
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted May 6, 2009, 11:03 PM EDT
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted May 6, 2009, 9:39 PM EDT
Are you giving the image path in html or in codebehind?
If it is form html code follow the following path
<tr valign="top">
<td valign="top">
<img src="images/body_07.gif" width="646" height="8" alt="">td>
tr>
Give the proper source,width,height for image
sy24 reputationPosted May 6, 2009, 9:45 PM EDT
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted May 6, 2009, 10:04 PM EDT
sy24 reputationPosted May 6, 2009, 10:10 PM EDT
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted May 6, 2009, 10:17 PM EDT
Give the proper path for image. If it is in"C:/image/logo.jpg". Then try to give the full path.Your image path is wrong i guess.
sy24 reputationPosted May 6, 2009, 10:23 PM EDT
sy24 reputationPosted May 6, 2009, 10:23 PM EDT
sy24 reputationPosted May 6, 2009, 10:23 PM EDT
sy24 reputationPosted May 6, 2009, 10:31 PM EDT
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted May 6, 2009, 10:42 PM EDT
create a folder as image inside your project folder.Paste the image there and try to link it in image contro.
check the example in following link.
http://www.w3schools.com/ASPNET/control_image.asp
sy24 reputationPosted May 6, 2009, 10:49 PM EDT
sy24 reputationPosted May 6, 2009, 11:32 PM EDT
Niradhip ChakrabortyRank #429 · 5.8K reputationPosted May 7, 2009, 12:01 AM EDT