protected void btnProcess_Click(object sender, EventArgs e) { try { AttendanceManager manager = new AttendanceManager(); CustomList <ATT_IO> ValidDeviceDataList = (CustomList <ATT_IO>)HttpContext.Current.Session["AttendImport_AttValidDataList"]; manager.SaveAtt_IO(ref ValidDeviceDataList); Response.Redirect("~/UI/Attendance/AttendanceProcess.aspx?FromDate=" + txtFromDate.Text + "&ToDate=" + txtToDate.Text); } catch (SqlException ex) { this.ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }
protected void btnSave_Click(object sender, EventArgs e) { try { AttendanceManager manager = new AttendanceManager(); CustomList <ATT_IO> ValidDeviceDataList = (CustomList <ATT_IO>)HttpContext.Current.Session["AttendImport_AttValidDataList"]; manager.SaveAtt_IO(ref ValidDeviceDataList); this.SuccessMessage = (StaticInfo.SavedSuccessfullyMsg); } catch (SqlException ex) { this.ErrorMessage = (ExceptionHelper.getSqlExceptionMessage(ex)); } catch (Exception ex) { this.ErrorMessage = (ExceptionHelper.getExceptionMessage(ex)); } }