i m a new web developer. i need to show image from F drive to website . please anybody help me best regards . my trial in below ......
button_click
{
var st = from s in db.WOs where s.WONo.StartsWith(TextBox1.Text) select s;
MaskedDataList1.DataSource = st;
MaskedDataList1.DataBind();
var st1 = (from s in db.WOs where s.WONo==TextBox1.Text select s).First();
string ff = st1.filesWO;
Response.ContentType = "image/jpeg"; // for JPEG file
string physicalFileName = @"F:\WO\"+ff;//prWO1-1.jpg";
Image img = new Image();
img.ImageUrl = physicalFileName;
//Response.WriteFile(physicalFileName);
}
.........Design.........
}
.........Design.........
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

barcode addictPosted Dec 3, 2013, 9:16 PM
http://stackoverflow.com/questions/19272842/how-to-display-image-which-is-stored-on-local-drive-or-network-drive
By the way, you can also try some external image web viewing controls if you want to spend the money.
Satyapriya NayakPosted Sep 15, 2013, 1:34 PM
Sunny SharmaPosted Sep 15, 2013, 8:14 AM
Please follow his link:
http://www.dotnetperls.com/image-aspnet
Hope it helps :)