public void DoDuLieuVaoForm() { chucnag cn = new chucnag(); GridView1.DataSource = cn.GetMuonSachBySV(Session["masv"].ToString()); GridView1.DataSourceID = null; GridView1.DataBind(); }
protected void btnTimKiem_Click(object sender, EventArgs e) { chucnag cn = new chucnag(); GridView1.DataSource = cn.GetMuonSachBySV(txtMaSV.Text); GridView1.DataSourceID = null; GridView1.DataBind(); }