Here I believe you have two challenges
1. show any local image on browser which not inside your web application (i.e D drive)
2. Javascript logic to show image preview on mouseover
Solution for the First is given below and for second I don’t have any code right now
There is no straight way to show any local image on browser which is not inside your web application as you cannot map path to that image from your web page.
Follow below steps
->Create a .aspx page Say ViewImage.aspx
->You need to pass path of image as QueryString which want to show
protected void Page_Load(object sender, EventArgs e)
{
string filePath = Request.QueryString["filePath"];
Response.Clear();
Response.ContentType = "image/jpeg";
Response.BinaryWrite(File.ReadAllBytes(filePath));
Response.End();
}