I wish to display an image in a gridview.
I have a database with 4 columns - id, author, comment, filename (which holds the img path)
http://postimg.org/image/4l
Dont set full path ,
string savepath = "~/Images/" + Filename; cmd.Parameters.AddWithValue("@filename", savepath));
just change this line it will work
and even change
fileupload.SaveAs(Server.MapPath("~/Images/" + FileName));