void LoadClaim() { string name = gdvdao.LayTenTheoMa(int.Parse(Request.Cookies["MaGDV"].Value)); DSClaimFollow.DataSource = cldao.DSClaimTheoFollower(name); DSClaimFollow.DataBind(); }
protected void btnFollower_Click(object sender, EventArgs e) { if (this.IsPostBack) { DataTable dt = new DataTable(); // int idgdv = int.Parse(drFollower.SelectedItem.Value.ToString()); string follower = drFollower.SelectedItem.ToString(); dt = cldao.DSClaimTheoFollower(follower); if (dt.Rows.Count > 0) { grDSClaim0.DataSource = dt; grDSClaim0.DataBind(); grDSClaim0.Visible = true; } else { grDSClaim0.Visible = false; } } }