public void LeaveProto() { string dtFrmDate = ""; if (string.IsNullOrEmpty(lblFrom.Text.Trim()) == false) { dtFrmDate = Common.ReturnDate(lblFrom.Text.Trim()); } string dtTillDate = ""; if (string.IsNullOrEmpty(lblTo.Text.Trim()) == false) { dtTillDate = Common.ReturnDate(lblTo.Text.Trim()); } dtLeave = timeSheetMgr.GET_LeaveRecord_TimeSheet(lblEmpId.Text.Trim(), dtFrmDate, dtTillDate); grLeave.DataSource = dtLeave; grLeave.DataBind(); dtLeaveDate = timeSheetMgr.GET_LeaveDate_TimeSheet(lblEmpId.Text.Trim(), dtFrmDate, dtTillDate); dtTimeSheetLeave = timeSheetMgr.GET_TimeSheetLeave(lblEmpId.Text.Trim(), mon.Trim(), lblYear.Text.Trim(), fisCalYrId, dtFrmDate, dtTillDate); }