Esempio n. 1
0
        private void bindList()
        {
            SearchDownLoad con = new SearchDownLoad();

            con.CpDLName = txtCpInforTypeName.Text.Trim().ToString();
            if (rbtnIsChinese.Checked == true)
            {
                con.IsEnglish = 1;
            }
            else if (rbtnIsEnglish.Checked == true)
            {
                con.IsEnglish = 2;
            }
            Pagination pagina = new Pagination(pager.PageIndex, pager.PageSize, 0);

            using (BLLDownLoad bll = new BLLDownLoad())
            {
                List <DownLoad> lists = bll.GetPageList(con, pagina, DownLoad.ID_FieldName, ScriptQuery.SortEnum.DESC);

                pager.RecordCount = pagina.RecordCount;
                pager.PageCount   = pagina.PageCount;

                grid_friendlink.DataSource = lists;
                grid_friendlink.DataBind();
            }
        }
Esempio n. 2
0
        private void setnews()
        {
            SearchDownLoad snt = new SearchDownLoad();

            snt.IsEnglish = 1;
            if (type == "")
            {
            }
            else
            {
                snt.CpDLName = type;
            }
            Pagination pagination = new DevNet.Common.Pagination(pager.PageIndex, pager.PageSize, 0);

            using (BLLDownLoad bll = new BLLDownLoad())
            {
                List <DownLoad> lists = bll.GetPageList(snt, pagination);
                pager.RecordCount  = pagination.RecordCount;
                rptNews.DataSource = lists;
                rptNews.DataBind();
            }
        }