You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The paging calculation isn't working properly (I'm referring to the Index.cshtml view of the BlogController).
`
@{
int currentPage = int.Parse(ViewContext.RouteData.Values[Constants.page] as string ?? "0");
int pageCount;
pageCount = int.TryParse(ViewData[Constants.TotalPostCount].ToString(), out pageCount) ? 0 : pageCount / 2;
}
`
The pageCount isn't calculated properly.
The text was updated successfully, but these errors were encountered:
Hi,
The paging calculation isn't working properly (I'm referring to the Index.cshtml view of the BlogController).
`
@{
int currentPage = int.Parse(ViewContext.RouteData.Values[Constants.page] as string ?? "0");
}
`
The pageCount isn't calculated properly.
The text was updated successfully, but these errors were encountered: