TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kanaparthi Sureshma Reddy
NA
85
38.3k
display image in WebGrid if the image path stored in DB?
Nov 24 2015 8:03 AM
Hi,
I inserted image path into database and I want to retrieve that image into my view page. The table is binding with remaining columns but image is not displayed. How to display image in my WebGrid or Table.
I used this in my view page.
@grid.GetHtml(columns:
grid.Columns
(
grid.Column("Id", "Id"),
grid.Column("Name","Name"),
grid.Column("Photo", format: @<text><img src="/Images/@item.Photo" height="40px" width="40px" /></text>)
)
Here Images is the Folder name and I am inserting dynamic image from folder.I am using Asp.Net MVC with Entity Framework and SQL Server as Database.
Thanks in Advance.
Reply
Answers (
1
)
select all checkboxes in dropdownchecbox in pageload?
what are localization and globalization in ASP.NET?