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