private void UpdateAll(FeedbackContainerControl feedback)
        {
            try
            {
                var errorCount = 0;

                foreach (var updateAll in _UpdateAllList)
                {
                    errorCount += updateAll(false);
                }

                feedback.AddInfo(_UpdateCount.ToString(CultureInfo.InvariantCulture) +
                                 _UpdateCount.Plural(" item was", " items were") + " updated.");
                if (errorCount > 0)
                {
                    feedback.AddError(errorCount.ToString(CultureInfo.InvariantCulture) +
                                      errorCount.Plural(" item was", " items were") +
                                      " not updated due to errors.");
                }
            }
            catch (Exception ex)
            {
                feedback.HandleException(ex);
            }
        }
Beispiel #2
0
            protected override void InitializeItem(TemplateControl owner,
                                                   bool addMonitorClasses = true, FeedbackContainerControl feedback = null)
            {
                var page = owner as SecurePage;

                // ReSharper disable once BaseMethodCallWithDefaultParameter
                base.InitializeItem(page, addMonitorClasses);

                _Heading =
                    page.Master.FindMainContentControl("Heading" + Column) as
                    HtmlGenericControl;
                IconBox =
                    page.Master.FindMainContentControl("IconBox" + Column) as HtmlAnchor;

                if (_Heading != null)
                {
                    _Heading.InnerHtml = Description;
                }

                if (IconBox != null)
                {
                    IconBox.Attributes.Add("title", IconToolTip);
                    IconBox.AddCssClasses("tiptip");
                }
            }
Beispiel #3
0
        protected void ButtonSignin_Click(object sender, EventArgs e)
        {
            try
            {
                bool success;
                FeedbackContainerControl.ClearValidationErrors(
                    TextBoxUserName, TextBoxPassword);
                SignInFeedback.ValidateRequired(TextBoxUserName, "Username", out success);
                SignInFeedback.ValidateRequired(TextBoxPassword, "Password", out success);

                if (SignInFeedback.ValidationErrorCount != 0)
                {
                    return;
                }
                var usernameEntered = TextBoxUserName.Text.Trim();
                var passwordEntered = TextBoxPassword.Text.Trim();

                HandleSignin(usernameEntered, passwordEntered);
            }
            catch (VoteException ex)
            {
                SignInFeedback.AddError(ex.Message);
            }
            catch (Exception ex)
            {
                SignInFeedback.AddError("Your signin failed due to an unexpected error.");
                SignInFeedback.HandleException(ex);
            }
        }
Beispiel #4
0
 public static void ClearAllValidationErrors(IEnumerable <DataItemBase> items)
 {
     foreach (var item in items)
     {
         FeedbackContainerControl.ClearValidationError(item.DataControl);
     }
 }
        public static FeedbackContainerControl AddCssClasses(this FeedbackContainerControl control,
                                                             string newClass, bool clear = false)
        {
            if (newClass == null)
            {
                return(control);
            }
            var cssClass = clear ? string.Empty : control.CssClass;
            var classes  = cssClass.Split(new[] { ' ' },
                                          StringSplitOptions.RemoveEmptyEntries);
            var newClasses = newClass.Split(new[] { ' ' },
                                            StringSplitOptions.RemoveEmptyEntries);

            foreach (var classToAdd in
                     newClasses.Where(classToAdd => !classes.Contains(classToAdd)))
            {
                if (!string.IsNullOrWhiteSpace(cssClass))
                {
                    cssClass += " ";
                }
                cssClass += classToAdd;
            }
            control.CssClass = cssClass;
            return(control);
        }
Beispiel #6
0
        private void UpdateAll(FeedbackContainerControl feedback)
        {
            try
            {
                var errorCount = 0;

                var oldEmail = Politicians.GetPublicEmail(PoliticianKey);
                foreach (var updateAll in _UpdateAllList)
                {
                    errorCount += updateAll(false);
                }
                var newEmail = Politicians.GetPublicEmail(PoliticianKey);
                if (oldEmail != newEmail)
                {
                    LoadContactTabData();
                    UpdatePanelContact.Update();
                    LoadSocialMediaTabData();
                    UpdatePanelSocial.Update();
                }

                feedback.AddInfo(_UpdateCount.ToString(CultureInfo.InvariantCulture) +
                                 _UpdateCount.Plural(" item was", " items were") + " updated.");
                if (errorCount > 0)
                {
                    feedback.AddError(errorCount.ToString(CultureInfo.InvariantCulture) +
                                      errorCount.Plural(" item was", " items were") +
                                      " not updated due to errors.");
                }
            }
            catch (Exception ex)
            {
                feedback.HandleException(ex);
            }
        }
Beispiel #7
0
        protected virtual void InitializeItem(TemplateControl owner,
                                              bool addMonitorClasses = true, FeedbackContainerControl feedback = null)
        {
            _GroupName = _GroupName.SafeString();
            var monitorClasses = addMonitorClasses
        ? $"mc mc-group-{_GroupName}-{Column}"
                                 .ToLowerInvariant()
        : null;

            DataControl = FindControl(owner, "Control" + _GroupName + Column);
            //  owner.Master.FindMainContentControl("Control" + _GroupName + Column);
            if (addMonitorClasses)
            {
                DataControl.AddCssClasses(monitorClasses + " mc-data");
            }
            var tooltip = DataControlToolTip;

            if (!IsNullOrWhiteSpace(tooltip))
            {
                DataControl.SetToolTip(tooltip);
                DataControl.AddCssClasses("tiptip");
            }

            Feedback = feedback ?? FindControl(owner, "Feedback" + _GroupName) as
                       //  owner.Master.FindMainContentControl("Feedback" + _GroupName) as
                       FeedbackContainerControl;

            _Asterisk = FindControl(owner, "Asterisk" + _GroupName + Column) as
                        //owner.Master.FindMainContentControl("Asterisk" + _GroupName + Column) as
                        HtmlControl;

            Label = FindControl(owner, "Label" + _GroupName + Column) as
                    //owner.Master.FindMainContentControl("Label" + _GroupName + Column) as
                    HtmlControl;

            if (_Asterisk != null)
            {
                if (addMonitorClasses)
                {
                    _Asterisk.AddCssClasses(monitorClasses + " mc-ast");
                }
                tooltip = AsteriskToolTip;
                if (!IsNullOrWhiteSpace(tooltip))
                {
                    _Asterisk.Attributes.Add("title", tooltip);
                    _Asterisk.AddCssClasses("tiptip");
                }
            }

            var expandable = FindControl(owner, "Expandable" + _GroupName + Column);

            //owner.Master.FindMainContentControl("Expandable" + _GroupName + Column);
            expandable?.AddCssClasses(monitorClasses + " mc-expandable");
        }
        private static DateTime ValidateElectionDate(TextBox textBox,
                                                     FeedbackContainerControl feedback, bool allowPastElection, out bool success)
        {
            var mindate = allowPastElection
        ? new DateTime(Elections.MinimumElectionYear, 1, 1)
        : DateTime.UtcNow.Date;
            var maxdate      = new DateTime(Elections.MaximumElectionYear, 12, 31);
            var electionDate = feedback.ValidateDate(textBox, out success,
                                                     "Election Date", mindate, maxdate);

            return(electionDate);
        }
Beispiel #9
0
        internal static int UpdateAll(IEnumerable <DataItemBase> items,
                                      FeedbackContainerControl feedback, bool showSummary = true,
                                      UpdatePanel updatePanel = null)
        {
            var errorCount = 0;

            try
            {
                var updateCount = 0;
                var changed     = false;

                foreach (var item in items)
                {
                    var updateStatus = item.DoUpdate(false);
                    switch (updateStatus)
                    {
                    case SecurePage.UpdateStatus.Failure:
                        errorCount++;
                        changed = true;
                        break;

                    case SecurePage.UpdateStatus.Success:
                        changed = true;
                        updateCount++;
                        break;
                    }
                }
                if (changed)
                {
                    updatePanel?.Update();
                }
                if (showSummary)
                {
                    //if (updateCount > 1)
                    feedback.AddInfo(updateCount.ToString(CultureInfo.InvariantCulture) +
                                     updateCount.Plural(" item was", " items were") + " updated.");
                    if (errorCount > 0)
                    {
                        feedback.AddError(errorCount.ToString(CultureInfo.InvariantCulture) +
                                          errorCount.Plural(" item was", " items were") +
                                          " not updated due to errors.");
                    }
                }
            }
            catch (Exception ex)
            {
                feedback.HandleException(ex);
            }

            return(errorCount);
        }
 private bool TigerChecks(out string localType, out List <string> localIds,
                          HtmlInputCheckBox controlEntireCounty, DropDownList controlTigerDistrict,
                          DropDownList controlTigerPlace, DropDownList controlSchoolDistrict,
                          DropDownList controlCityCouncilDistrict, DropDownList controlCountySupervisorsDistrict,
                          FeedbackContainerControl feedback)
 {
     localType = Empty;
     localIds  = new List <string>();
     if (controlEntireCounty.Checked)
     {
         localType = LocalIdsCodes.LocalTypeVote;
         localIds.Add(LocalIdsCodes.GetNextVoteIdForState(StateCode));
     }
     else
     {
         var tigerDistrict             = controlTigerDistrict.GetValue();
         var tigerPlace                = controlTigerPlace.GetValue();
         var schoolDistrict            = controlSchoolDistrict.GetValue();
         var cityCouncilDistrict       = controlCityCouncilDistrict.GetValue();
         var countySupervisorsDistrict = controlCountySupervisorsDistrict.GetValue();
         var selections                = 0;
         if (!IsNullOrWhiteSpace(tigerPlace))
         {
             selections++;
             localType = LocalIdsCodes.LocalTypeTiger;
             localIds.Add(tigerPlace);
         }
         if (!IsNullOrWhiteSpace(tigerDistrict))
         {
             selections++;
             localType = LocalIdsCodes.LocalTypeTiger;
             localIds.Add(tigerDistrict);
         }
         if (!IsNullOrWhiteSpace(schoolDistrict))
         {
             selections++;
             localType = schoolDistrict.Substring(0, 1);
             localIds.Add(schoolDistrict.Substring(1));
         }
         if (!IsNullOrWhiteSpace(cityCouncilDistrict))
         {
             selections++;
             localType = LocalIdsCodes.LocalTypeCityCouncil;
             localIds.Add(cityCouncilDistrict);
         }
         if (!IsNullOrWhiteSpace(countySupervisorsDistrict))
         {
             selections++;
             localType = LocalIdsCodes.LocalTypeCountySupervisors;
             localIds.Add(countySupervisorsDistrict);
         }
         if (selections == 0)
         {
             feedback.PostValidationError(
                 new[]
             {
                 controlTigerDistrict, controlTigerPlace, controlSchoolDistrict,
                 controlCityCouncilDistrict, controlCountySupervisorsDistrict
             },
                 "At least one item must be selected");
             return(true);
         }
         if (selections > 1)
         {
             feedback.PostValidationError(
                 new[]
             {
                 controlTigerDistrict, controlTigerPlace, controlSchoolDistrict,
                 controlCityCouncilDistrict, controlCountySupervisorsDistrict
             },
                 "Conflicting selections");
             return(true);
         }
     }
     return(false);
 }
Beispiel #11
0
        private SecurePage.UpdateStatus DoAnswerUpdate(IList <IGrouping <string, AnswersViewRow> > table,
                                                       string questionKey, bool reportUnchanged, ref int updateCount)
        {
            var page         = VotePage.GetPage <SecurePoliticianPage>();
            var updateStatus = SecurePage.UpdateStatus.Failure; // default
            var description  = string.Empty;

            var feedback =
                page.Master.FindMainContentControl("Feedback" + questionKey) as
                FeedbackContainerControl;
            var updatePanel =
                page.Master.FindMainContentControl("UpdatePanel" + questionKey) as UpdatePanel;
            var textAnswerBox =
                page.Master.FindMainContentControl("TextBox" + questionKey) as TextBox;
            var textSourceBox =
                page.Master.FindMainContentControl("Source" + questionKey) as TextBox;
            var textDateBox   = page.Master.FindMainContentControl("Date" + questionKey) as TextBox;
            var youTubeUrlBox =
                page.Master.FindMainContentControl("YouTubeUrl" + questionKey) as TextBox;
            var youTubeSourceBox      = page.Master.FindMainContentControl("YouTubeSource" + questionKey) as TextBox;
            var youTubeSourceUrlBox   = page.Master.FindMainContentControl("YouTubeSourceUrl" + questionKey) as TextBox;
            var youTubeDateBox        = page.Master.FindMainContentControl("YouTubeDate" + questionKey) as TextBox;
            var youTubeDescriptionBox =
                page.Master.FindMainContentControl("YouTubeDescription" + questionKey) as TextBox;
            var youTubeRunningTimeBox =
                page.Master.FindMainContentControl("YouTubeRunningTime" + questionKey) as TextBox;
            var youTubeFromCandidate =
                page.Master.FindMainContentControl("YouTubeFromCandidate" + questionKey) as HtmlInputCheckBox;
            var youTubeFromVoteUsa =
                page.Master.FindMainContentControl("YouTubeFromVoteUSA" + questionKey) as HtmlInputCheckBox;
            var sequenceHidden = page.Master.FindMainContentControl("Sequence" + questionKey) as HtmlInputHidden;
            var hasValue       =
                page.Master.FindMainContentControl("HasValue" + questionKey) as HtmlInputHidden;

            var textIsFromCandidate = SecurePage.IsPoliticianUser;

            var youTubeIsFromCandidate = SecurePage.IsPoliticianUser || youTubeFromCandidate.Checked ||
                                         youTubeSourceBox.Text.Trim() == YouTubeInfo.VideoUploadedByCandidateMessage;

            try
            {
                textAnswerBox.AddCssClasses("badupdate");

                FeedbackContainerControl.ClearValidationErrors(textAnswerBox, textSourceBox, textDateBox,
                                                               youTubeUrlBox, youTubeDateBox);

                var sequence = sequenceHidden.Value == "?"
          ? Answers.GetNextSequence(page.PoliticianKey, questionKey)
          : int.Parse(sequenceHidden.Value);

                var      newTextAnswer = textAnswerBox.GetValue();
                string   newTextSource;
                DateTime newTextDate;
                var      newYouTubeSource    = string.Empty;
                var      newYouTubeSourceUrl = string.Empty;
                var      newYouTubeDate      = VotePage.DefaultDbDate;
                bool     success;
                var      textDateWasEmpty    = true;
                var      youTubeDateWasEmpty = true;
                youTubeDescriptionBox.Text = string.Empty;
                youTubeRunningTimeBox.Text = string.Empty;

                newTextAnswer = feedback.StripHtml(newTextAnswer);
                newTextAnswer = newTextAnswer.StripRedundantSpaces();
                var oldResponses = table.Where(g => g.Key.IsEqIgnoreCase(questionKey))
                                   .SelectMany(g => g);
                var question = oldResponses.First();
                var oldRow   = table.Where(g => g.Key.IsEqIgnoreCase(questionKey))
                               .SelectMany(g => g)
                               .FirstOrDefault(r => r.Sequence == sequence);
                description = '"' + question.Question + '"';

                var isAnswerChanged = oldRow == null || /*newTextAnswer*/ textAnswerBox.GetValue().Trim() != oldRow.Answer.Trim();

                if (string.IsNullOrWhiteSpace(newTextAnswer))
                {
                    newTextSource = string.Empty;
                    newTextDate   = VotePage.DefaultDbDate;
                }
                else if (textIsFromCandidate)
                {
                    newTextSource = page.PageCache.Politicians.GetLastName(page.PoliticianKey);
                    newTextDate   = DateTime.UtcNow.Date;
                }
                else
                {
                    newTextSource    = textSourceBox.Text;
                    newTextSource    = feedback.StripHtml(newTextSource);
                    newTextSource    = newTextSource.StripRedundantSpaces();
                    textDateWasEmpty = string.IsNullOrWhiteSpace(textDateBox.Text);
                    newTextDate      =
                        feedback.ValidateDateOptional(textDateBox, out success, "Text Date",
                                                      isAnswerChanged ? DateTime.UtcNow.Date : VotePage.DefaultDbDate)
                        .Date;
                }

                var newYouTubeUrl = youTubeUrlBox.GetValue();
                newYouTubeUrl = feedback.StripHtml(newYouTubeUrl);
                newYouTubeUrl = newYouTubeUrl.StripRedundantSpaces();

                YouTubeInfo youTubeInfo = null;
                if (!string.IsNullOrWhiteSpace(newYouTubeUrl))
                {
                    var youTubeId = newYouTubeUrl.GetYouTubeVideoId();
                    if (youTubeFromCandidate != null && !youTubeFromCandidate.Checked &&
                        youTubeFromVoteUsa != null && !youTubeFromVoteUsa.Checked)
                    {
                        feedback.PostValidationError(new[] { youTubeFromCandidate, youTubeFromVoteUsa }, "Please select a type of video");
                    }
                    if (string.IsNullOrWhiteSpace(youTubeId))
                    {
                        feedback.PostValidationError(youTubeUrlBox, YouTubeInfo.InvalidVideoUrlMessage);
                    }
                    else
                    {
                        youTubeInfo = YouTubeUtility.GetVideoInfo(youTubeId, true, 1);
                        if (!youTubeInfo.IsValid)
                        {
                            feedback.PostValidationError(youTubeUrlBox, YouTubeInfo.VideoIdNotFoundMessage);
                        }
                        else if (!youTubeInfo.IsPublic)
                        {
                            feedback.PostValidationError(youTubeUrlBox, YouTubeInfo.VideoNotPublicMessage);
                        }
                        else
                        {
                            youTubeDateWasEmpty = string.IsNullOrWhiteSpace(youTubeDateBox?.Text);
                            if (youTubeIsFromCandidate)
                            {
                                newYouTubeSource    = YouTubeInfo.VideoUploadedByCandidateMessage;
                                newYouTubeSourceUrl = string.Empty;
                                newYouTubeDate      = youTubeInfo.PublishedAt;
                            }
                            else
                            {
                                newYouTubeSource    = youTubeSourceBox.Text;
                                newYouTubeSource    = feedback.StripHtml(newYouTubeSource);
                                newYouTubeSource    = newYouTubeSource.StripRedundantSpaces();
                                newYouTubeSourceUrl = youTubeSourceUrlBox == null
                  ? string.Empty
                  : youTubeSourceUrlBox.Text;
                                newYouTubeSourceUrl = feedback.StripHtml(newYouTubeSourceUrl);
                                newYouTubeSourceUrl = Validation.StripWebProtocol(newYouTubeSourceUrl);
                                newYouTubeDate      = youTubeDateWasEmpty
                  ? youTubeInfo.PublishedAt
                  : feedback.ValidateDate(youTubeDateBox, out success, "YouTube Date",
                                          new DateTime(2004, 1, 1), DateTime.UtcNow).Date;
                            }
                        }
                    }
                }

                if (feedback.ValidationErrorCount == 0)
                {
                    var oldTextAnswer       = string.Empty;
                    var oldTextSource       = string.Empty;
                    var oldTextDate         = VotePage.DefaultDbDate;
                    var oldYouTubeUrl       = string.Empty;
                    var oldYouTubeSource    = string.Empty;
                    var oldYouTubeSourceUrl = string.Empty;
                    var oldYouTubeDate      = VotePage.DefaultDbDate;

                    if (oldRow != null)
                    {
                        oldTextAnswer       = oldRow.Answer.SafeString();
                        oldTextSource       = oldRow.Source.SafeString();
                        oldTextDate         = oldRow.DateStamp.SafeDbDate();
                        oldYouTubeUrl       = oldRow.YouTubeUrl.SafeString();
                        oldYouTubeSource    = oldRow.YouTubeSource();
                        oldYouTubeSourceUrl = oldRow.YouTubeSourceUrl().SafeString();
                        oldYouTubeDate      = oldRow.YouTubeDate.SafeDbDate()
                                              .Date;
                    }

                    var unchanged = oldTextAnswer == newTextAnswer &&
                                    oldYouTubeUrl == newYouTubeUrl &&
                                    oldYouTubeSource == newYouTubeSource &&
                                    oldYouTubeSourceUrl == newYouTubeSourceUrl &&
                                    (oldYouTubeDate == newYouTubeDate || youTubeDateWasEmpty);
                    if (unchanged && !textIsFromCandidate)
                    {
                        unchanged = oldTextSource == newTextSource &&
                                    (oldTextDate == newTextDate || textDateWasEmpty);
                    }

                    if (unchanged)
                    {
                        if (reportUnchanged)
                        {
                            feedback.AddInfo("Your " + description + " entry was unchanged.");
                            updatePanel.Update();
                        }
                        updateStatus = SecurePage.UpdateStatus.Unchanged;
                    }
                    else
                    {
                        if (!textIsFromCandidate && !question.IsTextSourceOptional.GetValueOrDefault() &&
                            !string.IsNullOrWhiteSpace(newTextAnswer) &&
                            (isAnswerChanged || !string.IsNullOrWhiteSpace(oldTextSource)))
                        {
                            feedback.ValidateLength(textSourceBox, "Text Source", 1, 255, out success);
                        }
                        if (!string.IsNullOrWhiteSpace(newYouTubeUrl))
                        {
                            if (!youTubeIsFromCandidate)
                            {
                                feedback.ValidateRequired(youTubeSourceBox, "YouTube Source", out success);
                            }
                        }
                        if (feedback.ValidationErrorCount == 0)
                        {
                            string videoDescription = null;
                            var    videoRunningTime = default(TimeSpan);
                            if (youTubeInfo != null)
                            {
                                videoDescription           = youTubeInfo.ShortDescription;
                                videoRunningTime           = youTubeInfo.Duration;
                                youTubeDescriptionBox.Text = videoDescription;
                                youTubeRunningTimeBox.Text = videoRunningTime.FormatRunningTime();
                            }

                            if (youTubeSourceBox != null)
                            {
                                youTubeSourceBox.Text = newYouTubeSource;
                            }
                            if (youTubeSourceUrlBox != null)
                            {
                                youTubeSourceUrlBox.Text = newYouTubeSourceUrl;
                            }
                            if (youTubeDateBox != null)
                            {
                                youTubeDateBox.Text = newYouTubeDate.DbDateToShortDate();
                            }
                            if (youTubeFromCandidate != null)
                            {
                                youTubeFromCandidate.Checked = youTubeIsFromCandidate;
                            }
                            if (youTubeFromVoteUsa != null)
                            {
                                youTubeFromVoteUsa.Checked = !youTubeIsFromCandidate;
                            }

                            hasValue.Value = string.IsNullOrWhiteSpace(newTextAnswer) &&
                                             string.IsNullOrWhiteSpace(newYouTubeUrl)
                ? string.Empty
                : "Y";
                            page.LogPoliticianAnswerChange(questionKey, sequence, oldTextAnswer, newTextAnswer,
                                                           newTextSource);
                            page.UpdatePoliticianAnswer(questionKey, sequence, question.IssueKey, newTextAnswer,
                                                        newTextSource, newTextDate, newYouTubeUrl, videoDescription, videoRunningTime,
                                                        newYouTubeSource, newYouTubeSourceUrl, newYouTubeDate);
                            UpdateQuestion(questionKey, sequence);
                            feedback.AddInfo("Your " + description + " entry was updated.");
                            updateStatus = SecurePage.UpdateStatus.Success;
                            updateCount++;
                        }
                        updatePanel.Update();
                    }
                }

                if (updateStatus != SecurePage.UpdateStatus.Failure)
                {
                    if (newTextAnswer != textAnswerBox.Text)
                    {
                        updatePanel.Update();
                    }
                    textAnswerBox.SetValue(newTextAnswer);
                    if (!textIsFromCandidate)
                    {
                        if (string.IsNullOrWhiteSpace(newTextAnswer))
                        {
                            newTextSource = string.Empty;
                            newTextDate   = VotePage.DefaultDbDate;
                        }
                        var newDateText = newTextDate.DbDateToShortDate();
                        Debug.Assert(textSourceBox != null, "sourceBox != null");
                        Debug.Assert(textDateBox != null, "dateBox != null");
                        if (newTextSource != textSourceBox.Text || newDateText != textDateBox.Text)
                        {
                            updatePanel.Update();
                        }
                        textSourceBox.SetValue(newTextSource);
                        textDateBox.SetValue(newDateText);
                    }
                    if (!youTubeIsFromCandidate)
                    {
                        var newYouTubeDateText = newYouTubeDate == VotePage.DefaultDbDate
              ? string.Empty
              : newYouTubeDate.DbDateToShortDate();
                        if (newYouTubeDateText != youTubeDateBox.Text)
                        {
                            updatePanel.Update();
                        }
                        youTubeDateBox.SetValue(newYouTubeDateText);
                    }
                }

                textAnswerBox.RemoveCssClass("badupdate");
            }
            catch (Exception ex)
            {
                if (description == string.Empty)
                {
                    description = "your response";
                }
                feedback.AddError("There was an unexpected error updating " + description);
                feedback.HandleException(ex);
                updatePanel.Update();
            }

            return(updateStatus);
        }
Beispiel #12
0
 internal static int Update(this IEnumerable <DataItemBase> items,
                            FeedbackContainerControl feedback, bool showSummary = true,
                            UpdatePanel updatePanel = null)
 {
     return(DataItemBase.UpdateAll(items, feedback, showSummary, updatePanel));
 }