protected void rptCars_ItemCommand(object source, RepeaterCommandEventArgs e) { string UKZNOrderNo = string.Empty; if (Session["UKZNORDERNO"] != null) { UKZNOrderNo = Session["UKZNORDERNO"].ToString(); } string FileNo = "000"; if (Session["FileNo"].ToString() == "0") { FileNo = objBOUtiltiy.GenerateFileNo(Convert.ToInt32(Session["BranchId"])); BALFileManager _objBALFileManager = new BALFileManager(); _objBALFileManager.CreateFileNo(FileNo, Convert.ToInt32(Session["loginId"].ToString()), Convert.ToInt32(Session["TrvellerId"]), UKZNOrderNo); Session["FileNo"] = FileNo; } else { FileNo = Session["FileNo"].ToString(); } BACarResult objCarResult = new BACarResult(); int QuotationRefNo = Convert.ToInt32(Request.QueryString["QutRef"]); objCarResult.UpdateCarResultFile(QuotationRefNo, FileNo, UKZNOrderNo); Response.Redirect("ViewQuotationDetails.aspx?QutRef=" + QuotationRefNo); }