protected void lbuRefresh_Click(object sender, EventArgs e) { ClearData(); ClassYear y = new ClassYear(); DataTable dt = y.GetYear(""); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); }
void BindData() { ClassYear y = new ClassYear(); DataTable dt = y.GetYear(""); GridView1.DataSource = dt; GridView1.DataBind(); SetViewState(dt); }