protected void cmdUpdateQuote_Click(object source, EventArgs e) { string msgmodal = ""; BLL_TRV_QuoteRequest Qr = new BLL_TRV_QuoteRequest(); int QuoteID = Convert.ToInt32(Request.Form["hdQuoteID"].ToString()); try { if (txtFare.Text.Trim() != "" && txtTax.Text.Trim() != "" && txtTicketDeadline.Text.Trim() != "" && txtGDSLocator.Text.Trim() != "") { Qr.UpdateQuotation(QuoteID, txtGDSLocator.Text.Trim(), Convert.ToDecimal(txtFare.Text.Trim()), Convert.ToDecimal(txtTax.Text.Trim()), Convert.ToDateTime(txtTicketDeadline.Text.Trim()), cmbCurrency.SelectedValue, Convert.ToInt32(Session["USERID"].ToString()), txtPNRText.Text, Convert.ToInt32(cmbHours.SelectedValue), Convert.ToInt32(cmbMins.SelectedValue)); GetTravelReqeustByID(); GetQuotations(); ClearBoxes(); } msgmodal = String.Format("hideModal('dvNewQuotation');"); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "closedvNewQuotation", msgmodal, true); } catch { throw; } finally { Qr = null; } }