void pagingbtnGotoPage_ServerClick(object sender, EventArgs e)
        {
            int pageIndex = 1;

            if (int.TryParse(pagingGotoPage.Value.Trim(), out pageIndex))
            {
                if (pageIndex <= 0)
                {
                    pageIndex = 1;
                }
                else if (pageIndex >= tc.TotalPage)
                {
                    pageIndex = tc.TotalPage;
                }
                GetViewBind(tc.GotoPage(pageIndex));
                GetPageIndex();
            }
            else
            {
                Response.Write("<script>alert(' 请输入正确的页码! ')</script>");
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     tc = new WebPageControls.TableControls(contentDT, SIZE_PAGE, AJAX_URL);
     GetViewBind(tc.GotoPage(1));
     if (!IsPostBack)
     {
         categroies.DataSource     = UserMessageBoardService.GetCategories();
         categroies.DataTextField  = "CategoriesTitle";
         categroies.DataValueField = "CategoriesId";
         categroies.DataBind();
     }
     GetPageIndex();
     pagingAllPage.InnerHtml = "一共有" + tc.TotalPage.ToString() + "页";
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            tc = new WebPageControls.TableControls(contentDT, SIZE_PAGE, AJAX_URL);
            GetViewBind(tc.GotoPage(1));

            if (!IsPostBack)
            {
                role.DataSource     = UserRoleService.GetRoles();
                role.DataTextField  = "Name";
                role.DataValueField = "Id";
                role.DataBind();
            }
            GetPageIndex();
            pagingAllPage.InnerHtml = "一共有" + tc.TotalPage.ToString() + "页";
        }
 void pagingLastPage_ServerClick(object sender, EventArgs e)
 {
     GetViewBind(tc.GotoPage(tc.pageRows.Length));
     GetPageIndex();
 }