/// <summary>
        /// Handles the Click event of the control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        protected void btnSave_Click(object sender, EventArgs e)
        {
            pnlView.Visible = true;
            pnlEdit.Visible = false;

            IHasAttributes entity = ContextEntity() as IHasAttributes;

            Rock.Attribute.Helper.GetEditValues(phEditAttributes, entity);
            entity.SaveAttributeValues();

            ShowDetails();
        }