Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a book model having book properties. Also having an image folder having book images. I want to display them in a view like each row having 3 to 4 book images with text underneath.(basically sending a list of books with the image) I'm having real dificulties after tried so many times. I'm so weak in images and stuff.

please give me very simple guidline to follow.

do i have to use css, then what do i do in there?

do i have to have a url property in the book model?how

do i have to get the url to the image folder? then how do i do that?

please give me a good direction by a good example.

I need to finish it today.as I hvae been trying this for a week.
Posted

1 solution

This link will help you to display images what you have expect. In this example they are using viewengine as .aspx. So Please convert this in to Razor
http://www.c-sharpcorner.com/uploadfile/dhananjaycoder/working-with-images-in-Asp-Net-mvc-framework/[^]

Hope this helps
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900