private void SaveData(string IsDelete) { try { if (hfIsUpdate.Value == "Y") { hfId.Value = hfId.Value; } else { hfId.Value = Common.getMaxId("TrCategory", "TrCategoryId"); } clsCommonSetup objCommonSetup = new clsCommonSetup(hfId.Value.ToString(), txtCategoryName.Text.Trim(), (chkInActive.Checked == true ? "N" : "Y"), "N", Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "N", IsDelete); objEmpMgr.InsertTrainingCategory(objCommonSetup, hfIsUpdate.Value, IsDelete); lblMsg.Text = Common.GetMessage(hfIsUpdate.Value.ToString(), IsDelete); Common.EmptyTextBoxValues(this); this.EntryMode(false); this.OpenRecord(); } catch (Exception ex) { lblMsg.Text = ""; throw (ex); } }