Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.QueryString["tour"] == null || Request.QueryString["customer"] == null || Request.QueryString["numbertickets"] == null)
     {
         Response.Redirect("UI_Tour.aspx");
     }
     else
     {
         string tour     = Request.QueryString["tour"];
         string customer = Request.QueryString["customer"];
         lbAddress.Text = fc.getCustomer("Address", customer);
         lbName.Text    = fc.getCustomer("FullName", customer);
         lbMail.Text    = fc.getCustomer("Email", customer);
         lbPhone.Text   = fc.getCustomer("Phone", customer);
         //Tour
         lbIDTour.Text = tour;
         double price = Double.Parse(fc.getTour("PriceTour", tour));
         lbPrice.Text = price.ToString();
         int numberTicket = int.Parse(Request.QueryString["numbertickets"]);
         lbNumber.Text   = "" + numberTicket;
         lbNameTour.Text = fc.getTour("NameTour", tour);
         double total = price * numberTicket;
         lbMoney.Text = "" + total;
     }
 }