private int GetPageFromParameter()
        {
            if (string.IsNullOrEmpty(PreviousPage))
            {
                return(1);
            }

            if (string.IsNullOrEmpty(NextPage))
            {
                return(TotalPages);
            }

            var dict = NextPage.GetQueryStringDict();

            if (dict.ContainsKey("page"))
            {
                return(int.Parse(dict["page"]) - 1);
            }

            return(0);
        }