public void btnUpdateAccount_Click(object sender, EventArgs e)
        {
            if (!this.IsValid)
            {
                return;
            }

            ThisCustomer.Update();
            AccountUpdated = true;

            RefreshPage();
        }
Example #2
0
        private void UpdateAnonForAge13()
        {
            if (ThisCustomer.IsRegistered)
            {
                return;
            }

            int    isupdated = 1;
            string updateAnonRecordIfIsover13checked = string.Format("UPDATE EcommerceCustomer SET IsOver13 = 1, IsUpdated = {0} WHERE CustomerID = {1}", DB.SQuote(isupdated.ToString()), DB.SQuote(ThisCustomer.CustomerID.ToString()));

            DB.ExecuteSQL(updateAnonRecordIfIsover13checked);
            ThisCustomer.Update();
        }
Example #3
0
        public void btnUpdateAccount_Click(object sender, EventArgs e)
        {
            if (!this.IsValid)
            {
                return;
            }

            ThisCustomer.EMail       = ctrlBillingAddress.Email;
            ThisCustomer.Password    = ctrlBillingAddress.Password;
            ThisCustomer.FirstName   = ctrlBillingAddress.FirstName;
            ThisCustomer.LastName    = ctrlBillingAddress.LastName;
            ThisCustomer.Phone       = ctrlBillingAddress.PhoneNumber;
            ThisCustomer.IsOver13    = ctrlBillingAddress.Over13Checked;
            ThisCustomer.IsOKToEMail = ctrlBillingAddress.OkToEmailChecked;
            ThisCustomer.Salutation  = ctrlBillingAddress.Salutation;

            ThisCustomer.Update();
            AccountUpdated = true;
            RefreshPage();
        }