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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niradhip ChakrabortyPosted May 7, 2009, 3:03 AM
Niradhip ChakrabortyPosted May 7, 2009, 4:01 AM
syPosted May 7, 2009, 3:32 AM
syPosted May 7, 2009, 2:49 AM
Niradhip ChakrabortyPosted May 7, 2009, 2:42 AM
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
syPosted May 7, 2009, 2:31 AM
syPosted May 7, 2009, 2:23 AM
syPosted May 7, 2009, 2:23 AM
syPosted May 7, 2009, 2:23 AM
Niradhip ChakrabortyPosted May 7, 2009, 2:17 AM
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.
syPosted May 7, 2009, 2:10 AM
Niradhip ChakrabortyPosted May 7, 2009, 2:04 AM
syPosted May 7, 2009, 1:45 AM
Niradhip ChakrabortyPosted May 7, 2009, 1:39 AM
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