private void SaveData(string strIsDelete) { try { if (hfIsUpdate.Value == "Y") { hfId.Value = hfId.Value; } else { hfId.Value = Common.getMaxId("EmpEducation", "EduId"); } clsEmpEducation objclsEdu = new clsEmpEducation(txtEmpID.Text.Trim(), hfId.Value.ToString(), ddlDegree.SelectedValue.ToString(), ddlInstitute.SelectedValue.ToString(), ddlSubject.SelectedValue.ToString(), ddlResult.SelectedValue.ToString(), txtPassingYear.Text.Trim(), txtMarks.Text.Trim(), txtDegreeTitle.Text.Trim(), chkIsMaxDegree.Checked == true ?"Y":"N", Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString())); objEmpMgr.InsertEmpEducation(objclsEdu, hfIsUpdate.Value.ToString(), strIsDelete); lblMsg.Text = Common.GetMessage(hfIsUpdate.Value.ToString(), strIsDelete); this.OpenRecord(); this.EntryMode(false); this.ClearControl(); } catch (Exception ex) { lblMsg.Text = ""; throw (ex); } }