Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
Get image from database in mvc view
Akash Patil
Aug 24 2016 1:39 AM
215
Reply
hello experts
I stored image on server and in database stored the path of that image now i want to view image on razor view.
i tried this but get same image for all product
<img src="@Url.Content("/Images/image.jpg")" width="100" height="100" />
if i use below i get null not display anything
<img src="@Url.Content(item.Image1)" alt="" />
in database Image1(column) have path of the image
Please help
Thank You
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
How to add openXml or closedxml or microsoft.office
MVC application that uses an Access 2007 DB (.accdb)