Click here to Skip to main content
15,917,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I am generating report and 1 jpeg file in my c:\temp folder\.
Then I am trying to display this image in Image Control from the same path.

Currently I using imageurl property like:
imgChart.ImageUrl = "C:/temp folder/File1.jpeg";
but not able to view the same in image control.

Please help.

Thanks in advance.

Swati
Posted

Try this

Copy your path
"C:/temp folder/File1.jpeg";

and paste it in internet explorer
if image opens that means you have put the correct path

if not , check your escape sequences in the path

Hope this will help you.
Regards :rolleyes:
 
Share this answer
 
Swati_g1985 wrote:
imgChart.ImageUrl = "C:/temp folder/File1.jpeg";


Shouldn't your path be using back-slashes instead of forward-slashes?
<br />
imgChart.ImageUrl = @"C:\temp folder\File1.jpeg";


Chris.
 
Share this answer
 
v3

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