Hi...
See this. Here images are saved in imagefolder of project and its url('~/imagefolder/imagename.jpg') saved in databse like.
imgful=fileupload control.
string filename = Path.GetFileName(imgful.PostedFile.FileName);
imgful.SaveAs(Server.MapPath("~/Images/" + filename));
con = new MySqlConnection(cs);
con.Open();
cmd = new MySqlCommand("Insert into Items(ProductName,ImageUrl) values(@ImageName,@ImagePath)", con);
cmd.Parameters.AddWithValue("@ImageName", filename);
cmd.Parameters.AddWithValue("@ImagePath", "~/Images/" + filename);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
Thank u.