protected void SaveLocationButton_Clicked(object sender, EventArgs e)
    {
        string ShippingBusinessName = ShippingBusinessNameTextbox.Text;
        string ShippingFullName = ShippingFullnameTextbox.Text;
        string ShippingAddress1 = ShippingAddressLine1Textbox.Text;
        string ShippingAddress2 = ShippingAddressLine2Textbox.Text;
        string ShippingCity = ShippingCityTextbox.Text;
        string ShippingStateCode = ShippingStateDropdown.SelectedValue;
        string ShippingPostalCode = ShippingPostalCodeTextbox.Text;
        string ShippingPhone = ShippingPhoneTextbox.Text;

        CartDB db = new CartDB();

        bool success = false;

        int address_book_id;
        if (Helper.StringExists(ShippingAddressBookLocationID.Value) && Int32.TryParse(ShippingAddressBookLocationID.Value, out address_book_id))
        {
            LoginAddress address = LoginAddress.GetAddressFromLoginAddressID(address_book_id);
            if (address != null && address.LoginID == CartUsers.GetLoginID())
            {
                if (db.LoginUpdAddress(address.LoginAddressID, address.LoginID, ShippingBusinessName, ShippingFullName, ShippingAddress1, ShippingAddress2, ShippingCity, ShippingStateCode, "", ShippingPostalCode, CountryCode, ShippingPhone, 0))
                {
                    success = true;
                }
            }
        }
        else
        {
            int login_address_id;
            if (db.LoginAddAddress(CartUsers.GetLoginID(), ShippingBusinessName, ShippingFullName, ShippingAddress1, ShippingAddress2, ShippingCity, ShippingStateCode, "", ShippingPostalCode, CountryCode,ShippingPhone, out login_address_id))
            {
                ShippingAddressBookLocationID.Value = login_address_id.ToString();
                success = true;
            }
        }

        if (success)
        {
            //MessagePanel.Controls.Add(new LiteralControl("Address Saved"));
            MessagePanel.Controls.Add(new LiteralControl("<div style='margin: 0; float: right;'><img src='images/AddressSaved.jpg' alt='Adress saved'></div>"));
            PopulateAddressBook();
            Session["RedirectFromSaveAddress"] = "yes";
            string sbn=ShippingBusinessNameTextbox.Text;
            string sfn=ShippingFullnameTextbox.Text;
            string saa=ShippingAddressLine1Textbox.Text;
            string sab=ShippingAddressLine2Textbox.Text;
            string sct=ShippingCityTextbox.Text;
            string ssd=ShippingStateDropdown.Text;
            string spc=ShippingPostalCodeTextbox.Text;
            string spt=ShippingPhoneTextbox.Text;
            Response.Redirect("checkout.aspx"+"?sbn=" + sbn +"&sfn=" + sfn +"&saa=" + saa +"&sab=" + sab +"&sct=" + sct +"&ssd=" + ssd +"&spc=" + spc +"&spt=" +spt +"");
            // For testing only
            //Response.Redirect("http://webtest.edresources.com:8080/checkout.aspx");

        }
    }