コード例 #1
0
        protected void uxSave_Click(object sender, EventArgs e)
        {
            uxMessage.Text = "";
            CurrentMember.AdvocacyAlerts = ux_advocacy_alerts.Checked;
            CurrentMember.ContentReminders = ux_content_reminders.Checked;
            CurrentMember.EventReminders =  ux_event_reminders.Checked;
            CurrentMember.NotificationsDigest = ux_notifications_digest.Checked;
            CurrentMember.ObservationLogReminders = ux_observation_log_reminders.Checked;
            CurrentMember.PrivateMessageAlerts = ux_private_message_alerts.Checked;
            CurrentMember.SupportPlanReminders = ux_support_plan_reminders.Checked;
            CurrentMember.allowNewsletter = ux_weekly_personalized_newsletter.Checked;

            CurrentMember.Subscribed_DailyDigest = ux_digest_email_daily.Checked;
            CurrentMember.Subscribed_WeeklyDigest = ux_digest_email_weekly.Checked; 

            
            MembershipManager mgr = new MembershipManager();
            try
            {
                mgr.UpdateMemberAlertPrefernces(CurrentMember);
                
            }
            catch(Exception ex)
            {
                uxMessage.Text = ex.Message ;
            }
            uxMessage.Text += DictionaryConstants.MyAccount_PreferencesSavedLabel;
        }