Esempio n. 1
0
        private void NapDuLieu(int currPage, int recodperpage, int Pagesize, int MADM)
        {
            //string MADM = Request.QueryString.Get("MADM");

            DataSet   ds           = cm.StoreToDataSet(currPage, recodperpage, Pagesize, MADM);
            DataTable dtbData      = ds.Tables[0];
            DataTable dtbPhanTrang = ds.Tables[1];

            if (dtbData.Rows.Count > 0)
            {
                DataList1.DataSource = dtbData;
                DataList1.DataBind();
                if (dtbPhanTrang.Rows.Count > 0)
                {
                    Literal1.Text = dtbPhanTrang.Rows[0]["PhanTrang"] + "";
                }
            }
        }