//Show Real Data #region [Show Real Data] protected void btnShowRealData_Click(object sender, EventArgs e) { try { GrdDeviceData.DataSource = dsAttData; GrdDeviceData.DataBind(); } catch (Exception exp) { GeneralErr(exp.Message.ToString()); } }
//Device Data Changing #region [Device Data Changing] protected void GrdDeviceData_PageIndexChanging(object sender, GridViewPageEventArgs e) { try { DataSet ds = new DataSet(); ds = (DataSet)ViewState["EmpAtt"]; GrdDeviceData.PageIndex = e.NewPageIndex; GrdDeviceData.DataSource = ds.Tables[0]; GrdDeviceData.DataBind(); } catch (Exception exp) { GeneralErr(exp.Message.ToString()); } }
//Show Event #region [Show Event] protected void btnShow_Click(object sender, EventArgs e) { try { param = new string[4]; param[0] = "@SelectedDate"; param[1] = "01-" + txtDate.Text.ToString(); param[2] = "@EnrollNo"; param[3] = "10013"; DataSet ds = new DataSet(); ds = objCntrl.FillControl(param, "SP_ShowEmpAttendance"); ViewState["EmpAtt"] = ds; GrdDeviceData.DataSource = ds; GrdDeviceData.DataBind(); } catch (Exception exp) { GeneralErr(exp.Message.ToString()); } }