private void SaveData(string IsDelete) { long lngID = 0; try { if (hfIsUpdate.Value == "N") { lngID = objDB.GerMaxIDNumber("KPIEmpkpiMst", "EKPIID"); } else { lngID = Convert.ToInt32(hfId.Value); } clsCommonSetup objCommonSetup = new clsCommonSetup(lngID.ToString(), "", (chkInActive.Checked == true ? "N" : "Y"), "N", Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "N", IsDelete); //objKpi.InsertEmpKpiData(grEmpKpi, ddlMonth.SelectedValue.Trim(), ddlYear.SelectedValue.Trim(), //Common.ReturnDate(txtIssueDate.Text.Trim()), Session["USERID"].ToString().Trim(), Common.SetDateTime(DateTime.Now.ToString())); objKpi.InsertEmpKpiData(objCommonSetup, grEmpKpi, ddlGroup.SelectedValue.ToString(), ddlQuarter.SelectedValue.ToString(), txtYear.Text.ToString(), txtEmpID.Text.ToString().Trim(), hfIsUpdate.Value, IsDelete); if (hfIsUpdate.Value == "N") { lblMsg.Text = "Record Saved Successfully"; } else { lblMsg.Text = "Record Updated Successfully"; } Common.EmptyTextBoxValues(this); this.EntryMode(false); this.OpenRecord(); } catch (Exception ex) { lblMsg.Text = ""; throw (ex); } }