예제 #1
0
        /// <summary>
        /// Handles the Click event of the cmdUpdate control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
        protected void cmdUpdate_Click(object sender, EventArgs e)
        {
            if (!Page.IsValid)
            {
                return;
            }

            IEditHostSettingControl editHostSettingControl = (IEditHostSettingControl)_ctlHostSettings;

            if (editHostSettingControl.Update())
            {
                if (Message1.Text.Trim().Length.Equals(0))
                {
                    Message1.ShowSuccessMessage(GetLocalResourceObject("SaveMessage").ToString());
                }
            }
        }