Hello,
Is possible show a data base image (for example product photo) to a grid's popup template
I try Try this in my editor template view, but id is always 0:
The controller action is:
Another question is how to add a new image from the template popup window?
Thanks!
Is possible show a data base image (for example product photo) to a grid's popup template
I try Try this in my editor template view, but id is always 0:
<img src='@Url.Action( "ShowFoto", "Pacientes", new {id = Model.Id} )' />public ActionResult ShowFoto(int id){ var imageData = _db.Pacientes.Find(id).Foto; if (imageData != null) { return File(imageData, "image/jpg"); } return null;}Thanks!