protected void btnQuery_Click(object sender, EventArgs e) { DataTable dt = rmBLL.getRMListByName(tbName.Text.Trim()); ViewState["GridData"] = dt; GridRM.DataSource = dt; GridRM.DataBind(); }
private void getRMList() { DataTable dt = rmBLL.getAllRepairMen(); ViewState["GridRMData"] = dt; GridRM.DataSource = dt; GridRM.DataBind(); }
private void getGridData() { DataTable dt = rmBLL.getAllRepairMen(true); if (dt.Rows.Count > 0) { ViewState["GridData"] = dt; GridRM.DataSource = dt; GridRM.DataBind(); } }