Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can not find Image from local image path.
getting error "System.Web.HttpException: 'D:\Devlopment\1.png' is not a valid virtual path."
Posted
Updated 28-Oct-14 0:50am
v2

please copy image from local path to paste in your project folder
 
Share this answer
 
Comments
[no name] 28-Oct-14 2:34am    
Sir i can't do that i have to display multiple images in datalistview/gridview dynamically from the local path what is defined in database.
You have to put the file you want somewhere in your site directory structure and call it with a valid virtual path (i.e. drag Development folder into your root folder and use: "~/Development/1.png") or map the path using:
System.Web .HttpContext .Current .Server.MapPath ("~/Development/1.png");
 
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