protected string GetUrl(string PageNo) { if (Convert.ToInt32(PageNo) == CurrentPage) { return(CommonFunctions.AppendToUrl("#", "", "")); } else { return(CommonFunctions.AppendToUrlPager(Request.RawUrl.ToString(), Constants.PageId, PageNo)); } }
protected string GetUrlNext() { CurrentPage = CurrentPage + 1; if (CurrentPage > NoOfPages) { return("#"); } else { return(CommonFunctions.AppendToUrl(Request.RawUrl.ToString(), Constants.PageId, CurrentPage.ToString())); } }
protected string GetUrlPrevious() { int PreviousPage = CurrentPage - 1; if (PreviousPage == 0) { return("#"); } else { return(CommonFunctions.AppendToUrl(Request.RawUrl.ToString(), Constants.PageId, PreviousPage.ToString())); } }