Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            booking = new Bookings();

            // Default Guest account
            customer.typeAccount = false;

            // Creation Occasion list
            occasion = new string[] { "Choose...", "Anniversary", "Birthday", "Honeymoon", "Wedding", "Meeting", "Other" };

            occasionList.Items.Clear();

            foreach (string item in occasion)
            {
                occasionList.Items.Add(item);
            }
        }
Exemple #2
0
        protected void SubmitBtn_Click(object sender, EventArgs e)
        {
            bookings = new Bookings();

            //partySize = String.Format("{0}", Request.Form["partySize"]);
            //date = String.Format("{0}", Request.Form["date"]);
            //time = String.Format("{0}", Request.Form["time"]);

            bookings.bookingDate = dateCalendar.Text + " " + timeList.SelectedValue; // '23/06/2017 14:00'
            bookings.partySize   = partySizeList.SelectedValue;
            bookings.CheckingAvailability();
            Msg.Text = bookings.Message;
            if (bookings._status)
            {
                //Response.AddHeader("REFRESH", "3;URL=AddingCustomer.aspx");
                //bookings._status = false;
            }
            //Response.Redirect("AddingCustomer.aspx");
        }