Click here to Skip to main content
15,885,957 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

i have some thing like this..

imgpath = "D:\CC_Release\Docuploads\ScreenShotImages\sample.png";

<img id= 'Imgscreenshot' style='height:284px;margin-top: -460px;width: 392px;margin-left:402px;' src='" + imagepath + "' />

i need to show this image in the tag. If i put inside the project folder ie, if ScreenShotImages folder is inside project folder it will work fine ie,

imgpath = "..ScreenShotImages\Sample.img";

But my requirement is above need to work, ie, image should retrieve from the local directory and need show inside image tag.

Thanks in advance...
Posted
Comments
Richard MacCutchan 9-Jul-14 9:28am    
The rules are the same, provide the full path to the image file.

1 solution

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