示例#1
0
        protected override void ClearForm()
        {
            CurrentAspNetId = null;
            DisplayProfileTabs(false);

            chkIsLockedOut.Checked = false;
            chkIsLockedOut.Enabled = true;

            cbCanyonRanchCustomer.Checked = false;

            txtEmail.Text       = string.Empty;
            txtProfileName.Text = string.Empty;
            txtFirstName.Text   = string.Empty;
            txtLastName.Text    = string.Empty;
            ddlCoupons.ClearSelection();
            //ddlDeliveryTypes.ClearSelection();

            BillingInfoEdit1.Clear();

            AddressEdit_Shipping1.Clear();
            AddressEdit_Shipping1.EnableFields = false;

            ////preferences
            ProfilePrefsEdit1.Clear();

            ////allergens
            ProfileAllgsEdit1.Clear();

            //subprofiles
            SubProfileEdit1.Clear();
            gvwSubProfiles.DataSource = null;
            gvwSubProfiles.DataBind();
        }
        protected override void ClearForm()
        {
            BillingInfoEdit1.Clear();

            AddressEdit_Shipping1.Clear();
            AddressEdit_Shipping1.EnableFields = false;

            //subprofiles
            SubProfileEdit1.Clear();
            gvwSubProfiles.DataSource = null;
            gvwSubProfiles.DataBind();
        }
        void gvwSubProfiles_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                int subProfileId = int.Parse(gvwSubProfiles.DataKeys[gvwSubProfiles.SelectedIndex].Value.ToString());

                SubProfileEdit1.PrimaryKeyIndex = subProfileId;
                SubProfileEdit1.Bind();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#4
0
        void gvwSubProfiles_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            try
            {
                int subProfileId = int.Parse(gvwSubProfiles.DataKeys[e.RowIndex].Value.ToString());

                hccUserProfile delSub = hccUserProfile.GetById(subProfileId);

                if (delSub != null)
                {
                    delSub.Activation(!delSub.IsActive);
                }

                SubProfileEdit1.Clear();

                BindgvwSubProfiles();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
示例#5
0
 protected void SubProfileEdit1_ControlCancelled(object sender)
 {
     gvwSubProfiles.SelectedIndex = -1;
     SubProfileEdit1.Clear();
 }