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
Harikanth Kompally
1.6k
120
30.8k
Image retrieve problem
Aug 27 2016 9:06 AM
Hi sir
I have problem in image retrieve from database
in this image path is viewing in attribute but dose not display the image in view
please solve it
thank u
@{
Datetime.HRMEntities entity = new Datetime.HRMEntities();
}
@using (Html.BeginForm())
{
<table border="1">
<thead>
<tr>
<th>Image</th>
<th>First name</th>
<th>Last name</th>
</tr>
</thead>
<tbody>
@foreach (var item in entity.ImageSaves)
{
<tr>
<td><img src="~/images/@item.imageUrl" width="100" height="100" /></td>
<td>@item.fname</td>
<td>@item.lname</td>
</tr>
}
</tbody>
</table>
}
Reply
Answers (
2
)
restful service
How to use windows authentication in web application