Fixed and closed #495 : If the number of pages is equal to (pageCount-1)*pageSize the last page is not displayed.

This commit is contained in:
Matteo Tomasini 2010-03-25 15:45:54 +00:00
parent 9696e38c32
commit 3f999db114
3 changed files with 6 additions and 3 deletions

View file

@ -47,6 +47,7 @@ namespace ScrewTurn.Wiki {
currentPages = GetAllPages();
pageSelector.ItemCount = currentPages.Count;
pageSelector.PageSize = PageSize;
string p = Request["Page"];
if(!int.TryParse(p, out selectedPage)) selectedPage = 0;