<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<% int page = 0; Int32.TryParse(Request.QueryString["page"], out page); int pageSize = Convert.ToInt32(ViewData[Constants.DefaultPageSize]); int currentPageCount = (page * pageSize) + pageSize; if (currentPageCount > Model.NumberOfRecords) { currentPageCount = Model.NumberOfRecords; } %> Retrieved records <%=page * pageSize + 1 %> - <%=currentPageCount %> of <%=Model.NumberOfRecords %>, <%= Constants.DataTableCount%>
<%if (page > 0) { %> <%:Html.ActionLink("Previous 100 records", "List", new { reportId = Request.QueryString["reportId"], facilityId = Request.QueryString["facilityId"], page = page - 1 })%> | <%} %> <%if((page + 1) * pageSize <= Model.NumberOfRecords){ %> <%:Html.ActionLink("Next 100 records", "List", new { reportId = Request.QueryString["reportId"], facilityId = Request.QueryString["facilityId"], page = page + 1 })%> <%} %>