コード例 #1
0
        //Hiển thị bảng dữ liệu
        private void ShowData()
        {
            tableNhomSach.DataSource = tbl_ns.GetAllData();
            tableNhomSach.DataBind();

            if (tableNhomSach.Rows.Count > 0)
            {
                tableNhomSach.HeaderRow.TableSection = TableRowSection.TableHeader;
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            tbl_Nhom tbl_ns = new tbl_Nhom();

            form1.Action = Request.RawUrl;
            if (!IsPostBack)
            {
                Repeater1.DataSource = tbl_ns.GetAllData();
                Repeater1.DataBind();
            }
        }