I have a image control and I have to set it’s ImageUrl to a physical path like C:\image\image1.jpg but control takes virtual path only. How to show that image if path we have is physical path?
I have a image control and I have to set it’s ImageUrl to a
Share
No because the client (browser) can’t access that file. It needs to be a file that is exposed to “the internet”. You will need to move the image elsewhere and reference it with the tilde
~which means “application path”:~/Images/images1.jpg.