asp.net MVC

How to display Image in MVC asp.net?

How to display Image in MVC asp.net?, someone asked me to explain?

In this article I am explains about how todisplay Image using MVC asp.net. It is simple by using @Url.Content(“imageLoction”).Here I am using entity frame work the object model contains property namecalled pictureLocation. The PictureLocation property having the image path.

 Eg: location of image is ~/img/chiptrolls.jpg

 <img src= "@Url.Content(Model.PictureLocation)" alt="IMAGES" />

Post your comments / questions