if (IsPostBack) { AttendanceDate = DateTime.Parse(HttpContext.Current.Session["AttendanceLogDate"].ToString()); } else { AttendanceDate = Convert.ToDateTime(HttpContext.Current.Session["AttendanceLogDate"].ToString()); }
DateTime tempDate; if (HttpContext.Current.Session["AttendanceLogDate"] != null && DateTime.TryParse(HttpContext.Current.Session["AttendanceLogDate"].ToString(), out tempDate)) { AttendanceDate = tempDate; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)