Ejemplo n.º 1
0
        protected void ButtonCheckOut_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrEmpty(addressId))
            {
                //Access Delivery_Address table
                AddressUtil adr = new AddressUtil();
                adr.AddressType  = TextBoxAddressType.Text;
                adr.UserName     = Session["user"].ToString();
                adr.Phone        = TextBoxPhone.Text;
                adr.AddressLine1 = TextBoxAddressLine1.Text;
                adr.AddressLine2 = TextBoxAddressLine2.Text;
                adr.ZipCode      = TextBoxZipCode.Text;

                adr.InsertAddress();
                addressId = adr.Delivery_ID;
            }

            Response.Redirect("Thanks.aspx");
        }