Description :
This is step by step tutorial on how to Upload images and how to display images back to the browser in Asp.Net Mvc 5 Application using sql Server Database.
Nguồn:https://wijstaanvooronzegrondrechten.org/
Description :
This is step by step tutorial on how to Upload images and how to display images back to the browser in Asp.Net Mvc 5 Application using sql Server Database.
Nguồn:https://wijstaanvooronzegrondrechten.org/
Pls give source code link to download
This is a great video. Thanks.
Better maintenance for data stored in database server while better query performance for data stored in web server.
How can we update the images ?
Thanks Aloooot ;D
public ActionResult Create(resim resim, HttpPostedFileBase file)
{
if (file !=null)
{
string rsm = System.IO.Path.GetFileName(file.FileName);
string adres = Server.MapPath("~/images/"+resim);
file.SaveAs(adres);
resim.ad = Request.Form["ad"];
resim.resim1 = rsm;
}
if (ModelState.IsValid)
{
db.resim.Add(resim);
db.SaveChanges();
return RedirectToAction("Index");
}
ViewBag.ilanid = new SelectList(db.ilan,"id","baslik",resim.ilan_id);
ViewBag.islem_id = new SelectList(db.islem, "id", "ad");
ViewBag.kategori_id = new SelectList(db.kategori, "id", "ad");
ViewBag.kimden_id = new SelectList(db.kimden, "id", "ad");
return View(resim);
}
how to update images or editing images in mvc
Where is source code link??
Wow, Great Video, Thank You.
Sir i am waiting for all videos… thanks
Hi Vetrivel..Thanks for making this video.But when run view action method why we need to pass the id parameter.Why it not retrieve the id. Do we need to pass the id parameter everytime when run the view.