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