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

        if (PreviousPage == 0)
        {
            return("#");
        }
        else
        {
            return(CommonFunctions.AppendToUrl(Request.RawUrl.ToString(), Constants.PageId, PreviousPage.ToString()));
        }
    }