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
Kwasi Denkyira
1.5k
197
15k
IE taking too long to open a page
Aug 6 2019 2:23 PM
I am using an html table with foreach and mvc5. Rendering just 954 rows takes over 5 minutes to display in IE but 23seconds in Chrome. The problem is we are not allowed to use Chrome The Linq query takes 1.26secs. Below is my Html table. Any help would be appreciated.
@using TestSystem
@model IEnumerable<EmpDTO>
<table class="table table-striped">
<thead>
<tr>
<th style="width: 190px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Emp Number</th>
<th style="width: 190px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Emp Comments</th>
<th style="width: 190px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Admin Submit</th>
<th style="width: 190px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Admin Review</th>
<th></th>
<th style="width: 180px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Supervisor Submit</th>
<th style="width: 160px; padding-right:15px; font-size:8pt; font-family: verdana; FONT-WEIGHT: bold; COLOR: #666666;">Supervisor Final Review</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var model in Model)
{
var item = model;
<tr>
<td>
@if (!model.EmpDisplay)
{
<a href="@Url.Action("")/@item.Id">
<span>@item.Id</span>
<span> - </span>
<span>
@if (item.SupervisorSubmit != null)
{
@item.SupervisorSubmit.Value.ToString("d MMM yyyy")
}
</span>
@if (model.ResubmissionNum > 0)
{
<span>|@Html.DisplayFor(i => model.ResubmissionNum)|</span>
}
</a>
}
else
{
<span>@item.Id</span>
<span> - </span>
<span>
@if (item.SupervisorSubmit != null)
{
@item.SupervisorSubmit.Value.ToString("d MMM yyyy")
}
</span>
if (model.ResubmissionNum > 0)
{
<span>|@Html.DisplayFor(i => model.ResubmissionNum)|</span>
}
}
</td>
Reply
Answers (
3
)
How to add Data in gridview from Dropdownlist ?
what is use of static class in c#