protected void btnSave_Click(object sender, EventArgs e) { string strId = ""; try { strId = Common.getMaxId("USDRate", "USDId"); string strUSDDate = ""; if (string.IsNullOrEmpty(txtRateDate.Text) == false) { strUSDDate = Common.ReturnDate(txtRateDate.Text); } objPayMgr.InsertUDSRate(strId, txtUsdRate.Text, strUSDDate, Session["USERID"].ToString(), Common.SetDateTime(DateTime.Now.ToString()), "N", "N"); this.OpenRecord(); lblMsg.Text = "Record Saved Successfully"; } catch (Exception ex) { throw (ex); } }