Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ddlTo.SelectedIndex = 1;
         lbl_custid.Text     = Session["uid"].ToString();
         bus.uid             = Convert.ToInt32(Session["uid"]);
         lbl_name.Text       = bal.GetUser(bus);
     }
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         BeBooking   bus = (BeBooking)Session["bus"];
         BalBooking2 bal = new BalBooking2();
         userid.Disabled   = true;
         userid.Value      = bus.uid.ToString();
         uname.Value       = bal.GetUser(bus);
         date.Value        = bus.dte.Date.ToString().Substring(0, 9);
         cost.Value        = bus.cost.ToString() + ".00";
         time.Value        = bus.time.ToLongTimeString().ToString().Substring(0, 8);
         bookingid.Value   = bus.bookingid.ToString();
         from.Value        = bus.start;
         to.Value          = bus.destination;
         busname.Value     = bus.bus_name;
         noOftickets.Value = bus.noOfTickets.ToString();
         Session.Clear();
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     Response.Cache.SetExpires(DateTime.Now.AddSeconds(-1));
     Response.Cache.SetNoStore();
     if (Session.Count == 0)
     {
         Response.Redirect("Home.aspx");
     }
     else
     {
         BalBooking2 bal = new BalBooking2();
         bus               = (BeBooking)Session["bus"];
         userid.Value      = bus.uid.ToString();
         uname.Value       = bal.GetUser(bus);
         start.Value       = bus.start;
         destination.Value = bus.destination;
         time.Value        = bus.time.ToLongTimeString().Substring(0, 8);
         busname.Value     = bus.bus_name;
         date.Value        = bus.dte.Date.ToString().Substring(0, 9);
         cost              = bus.cost;
         ClientScript.RegisterArrayDeclaration("cost", "'" + cost + "'");
     }
 }