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
Y G
NA
236
30.2k
ASP.NET MVC using Jquery
Nov 1 2016 2:23 AM
<div id="tabDetails" align="center">
<table cellpadding="3" cellspacing="3" border="1">
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Middle Name</th>
<th>Admission No</th>
<th>Roll No</th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>@Html.DisplayFor(modelItem => item.firstName)</td>
<td>@Html.DisplayFor(modelItem => item.lastName)</td>
<td>@Html.DisplayFor(modelItem => item.middleName)</td>
<td>@Html.DisplayFor(modelItem => item.addmissionNo)</td>
<td>@Html.DisplayFor(modelItem => item.rollNo)</td>
</tr>
}
</table>
</div>
Here I have got the data and everything is fine, but the table information is not displaying on the browser , in browser it is just displaying the heading but not the data.
In debugger, it is just showing the heading and tbody tag but not td cells.
anyone help in solving this issue....
Reply
Answers (
4
)
ASP.NET MVC using jquery
Javascript get no of days between two dates,