/// <summary>
        ///     This method is called when the user edits the web part by retrieving the data
        ///     from the web part
        /// </summary>
        public override void SyncChanges()
        {
            EnsureChildControls();
            MembershipRequestWebPart reg = this.WebPartToEdit as MembershipRequestWebPart;

            if (reg != null)
            {
                ddlGroup.Text = reg.GroupName;
            }
        }
        /// <summary>
        ///     This method is called when the user applies changes and sets the property
        ///     of the web part.
        /// </summary>
        /// <returns>True</returns>
        public override bool ApplyChanges()
        {
            EnsureChildControls();
            MembershipRequestWebPart reg = this.WebPartToEdit as MembershipRequestWebPart;

            if (reg != null)
            {
                reg.GroupName = ddlGroup.Text;
            }
            return(true);
        }