protected void GetTicketDetails()
    {
        try
        {
            if (Session["Ticketrefno"] != null)
            {
                ClsBAL ObjManbusBAL = new ClsBAL();
                ObjManbusBAL.manabusRefNo = Session["Ticketrefno"].ToString();
                DataSet _objDataSetBook = (DataSet)ObjManbusBAL.GetTicketIdByTicketrefNo();
                if (_objDataSetBook != null)
                {
                    if (_objDataSetBook.Tables.Count > 0)
                    {
                        if (_objDataSetBook.Tables[0].Rows.Count > 0)
                        {
                            travelName = _objDataSetBook.Tables[0].Rows[0]["TravelOPName"].ToString().Trim();
                            api = _objDataSetBook.Tables[0].Rows[0]["APIName"].ToString();
                            Name = _objDataSetBook.Tables[0].Rows[0]["FullName"].ToString();
                            SeatNos = _objDataSetBook.Tables[0].Rows[0]["SeatNos"].ToString();
                            Route = _objDataSetBook.Tables[0].Rows[0]["Route"].ToString();
                            LJRefNo = _objDataSetBook.Tables[0].Rows[0]["OnewayMBRefNo"].ToString();
                            PNR = _objDataSetBook.Tables[0].Rows[0]["PNRNumber"].ToString();
                            Boardingpoint = _objDataSetBook.Tables[0].Rows[0]["BoardingPointName"].ToString();
                            BoardingInfo = _objDataSetBook.Tables[0].Rows[0]["BoardingInfo"].ToString();
                            ContactNo = _objDataSetBook.Tables[0].Rows[0]["ContactNo"].ToString();

                            gvView.DataSource = _objDataSetBook.Tables[0];
                            gvView.DataBind();
                            GetCancellationPolicy(api);
                            Mail(_objDataSetBook.Tables[0].Rows[0]["EmailId"].ToString());

                            SMS();

                            ViewState["MailId"] = _objDataSetBook.Tables[0].Rows[0]["EmailId"].ToString();
                            ViewState["BookingId"] = _objDataSetBook.Tables[0].Rows[0]["BookingId"].ToString();
                            ViewState["TentativeId"] = _objDataSetBook.Tables[0].Rows[0]["TentativeId"].ToString();

                        }
                    }
                }
            }

        }
        catch (System.Exception ex)
        {
            throw ex;
        }
    }
    protected void GetTicketDetails()
    {
        try
        {
            if (Session["Ticketrefno"] != null)
            {
              ClsBAL  ObjManbusBAL = new ClsBAL();
                ObjManbusBAL.manabusRefNo = Session["Ticketrefno"].ToString();
             DataSet   _objDataSetBook = (DataSet)ObjManbusBAL.GetTicketIdByTicketrefNo();
                if (_objDataSetBook != null)
                {
                    if (_objDataSetBook.Tables.Count > 0)
                    {
                        if (_objDataSetBook.Tables[0].Rows.Count > 0)
                        {
                            string travelName = _objDataSetBook.Tables[0].Rows[0]["TravelOPName"].ToString();
                            string api = _objDataSetBook.Tables[0].Rows[0]["APIName"].ToString();
                            gvView.DataSource = _objDataSetBook.Tables[0];
                            gvView.DataBind();

                            GetCancellationPolicy(travelName);

                            if (api == "Kesineni")
                            {
                                imgKesineni.Visible = true;
                            }

                            Mail(_objDataSetBook.Tables[0].Rows[0]["EmailId"].ToString());

                            ViewState["MailId"] = _objDataSetBook.Tables[0].Rows[0]["EmailId"].ToString();
                            ViewState["BookingId"] = _objDataSetBook.Tables[0].Rows[0]["BookingId"].ToString();
                            ViewState["TentativeId"] = _objDataSetBook.Tables[0].Rows[0]["TentativeId"].ToString();

                        }
                    }
                }
            }

        }
        catch (System.Exception ex)
        {
            throw ex;
        }
    }