Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
:-O My Image is not displaying When i run the application but the image is there at the design time. What should i do?
Posted
Updated 9-Dec-10 1:46am
v6
Comments
Narsimlu Keshagouni 28-May-10 8:28am    
Be more specific and post code.
anupkulkarni85 2-Jun-10 7:17am    
Sandeep Mewar
I had done What you said but it show for sometime and then Closed the images then What to do.
Ankur\m/ 4-Jun-10 3:34am    
If you need to tell something to the answerer, put a comment to his answer.
You will be notified if you post comment to your question and not him.

First u check the path of image on rendering in html source
 
Share this answer
 
you need to check the path.
it depends from where r you calling the image.
you should need to create a folder in the project tree and then first add all image to your project folder then drag & drop it where you want to apply it. it will automatically add path and display images. try it
it will work
 
Share this answer
 
if the image is using html image u can check the folder hierarchy.

if the images folder is outside in the main application use
../ in the path

if the image is using a .net server control use
~/ in the path.
 
Share this answer
 
1. Drag image control in ASPX designer
2. Set the image path. (Path to the image that needs to be displayed)
3. Run it and it will show.

Read here: MSDN: Image Class[^]
 
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