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