private void SaveDataIR(string sIsDelete) { try { string strIRPolicyId = ""; if (hfIsUpdate.Value == "N") { strIRPolicyId = Common.getMaxId("ITIRPolicy", "ITIRPolicyId"); } //rMaxIDNumber("ITIRPolicy", "ITIRPolicyId"); else { strIRPolicyId = hfIRId.Value.ToString(); } objOptMgr.SaveITIRPolicyData(strIRPolicyId, txtSLNo.Text.Trim(), txtStartRange.Text.Trim(), txtEndRange.Text.Trim(), txtTopBand.Text.Trim(), txtSlot.Text.Trim(), txtPercentage.Text.Trim(), Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "N"); if (hfIsUpdate.Value == "N") { lblMsg.Text = "Record Saved Successfully"; } else { lblMsg.Text = "Record Updated Successfully"; } this.EntryMode(false); this.FillITIRPolicyData(); this.ClearControlIR(); } catch (Exception ex) { lblMsg.Text = ""; throw (ex); } }