protected void Page_Load(object sender, EventArgs e)
        {
            string strPageNo = Request["PageNo"];

            Int32.TryParse(strPageNo, out PageNo);
            if (PageNo == 0)
            {
                PageNo = 1;
            }

            if (!Page.IsPostBack)
            {
                BOLPublications PublicationsBOL = new BOLPublications();
                rptPublications.DataSource = PublicationsBOL.GetPublications(PageNo, PageSize);
                rptPublications.DataBind();

                int ResultCount = PublicationsBOL.GetPublicationsCount();
                int PageCount   = (int)ResultCount / PageSize;
                if (ResultCount % PageSize > 0)
                {
                    PageCount++;
                }

                ConcatUrl           += "";
                pgrToolbar.PageNo    = PageNo;
                pgrToolbar.PageCount = PageCount;
                pgrToolbar.ConcatUrl = ConcatUrl;
                pgrToolbar.PageBind();
            }
        }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region Tab Pages
        if (!NewMode)
        {
            ShowDetails();
        }
        else
        {
            RadMultiPage1.SelectedIndex     = 0;
            tsPublications.Tabs[0].Selected = true;
        }
        #endregion
        BOLClass        = new BOLPublications();
        lblSysName.Text = BOLClass.PageLable;

        if ((Code == null) && (!NewMode))
        {
            return;
        }
        if (!Page.IsPostBack)
        {
            //if (!NewMode) ShowDetails();


            #region Fill Combo

            #endregion
            if (!NewMode)
            {
                LoadData((int)Code);
            }
        }
    }