private void SaveData() { string strLogID = ""; strLogID = Common.getMaxId("EmpLeaveAccrual", "LogId"); objLeaveMgr.InsertEmpLeaveAccrueLog(strLogID, grEmpList, ddlLeaveType.SelectedValue.ToString(), ddlMonth.SelectedValue, ddlYear.SelectedValue, Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString())); lblMsg.Text = "Record has been saved successfully."; this.ClearFields(); }