void BindData() { ClassDistrict d = new ClassDistrict(); DataTable dt = d.GetDistrict("", "", "", "", "", "", ""); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); }
protected void btnSearchRefresh_Click(object sender, EventArgs e) { ClearData(); ClassDistrict d = new ClassDistrict(); DataTable dt = d.GetDistrict("", "", "", "", "", "", ""); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); }