Hi All,
I have a website located on webserver, eg : C:\inetpub\wwwroot\MyWeb , under MyWeb, I create folder images (C:\inetpub\wwwroot\MyWeb\images) . If I uploaded an images and display it from that folder It can run perfectly. I can display an
image perfectly like the code below :
string sfilename = "~/images/a.jpg";
Session["Image"] = sfilename;
Image1.ImageUrl = sfilename;
Due to the limitation of disk space on drive C:\ I create a folder on drive D:\images
So I want to save the uploaded images on drive D:\images, It can be saved on that drive, but I have a problem to display the images, It can not display the images.
Here is the code :
string sfilename = "@E:\\tech_images\\a.jpg";
Session["Image"] = sfilename;
Image1.ImageUrl = sfilename;
Does anyone have an idea how to solved it ?
Go to the complete details ...