u no need to store the image in database ,
u jus add a field in ur table with name imageUrl n
jus store the path of ur image as in the following coding n
once if u store the path of ur image ,
u can retrive the path using query and bind that path to ur Image's url ..
using (New_alertDataContext im = new New_alertDataContext())
{
if (FileUpload1.HasFile)
{
Myimgs_2 gs = new Myimgs_2();
FileUpload1.SaveAs(Server.MapPath("imges/") + FileUpload1.FileName);
gs.Attachments = "imges/" + FileUpload1.FileName.ToString();
gs.Attachments = "imges/" + FileUpload1.FileName.ToString();
//lblStatus.Text = "File Saved to: " + Server.MapPath("data//");
gs.Imgs_id = ID;
im.Myimgs_2s.InsertOnSubmit(gs);
im.SubmitChanges();
}
}