Beispiel #1
0
 public static void ShowServerErrors(InfoCore[] errorInfos, System.Web.UI.Page page)
 {
     if (errorInfos != null && errorInfos.Length > 0)
     {
         Dictionary <string, InfoCore> dictionary = new Dictionary <string, InfoCore>();
         Array.ForEach <InfoCore>(errorInfos, delegate(InfoCore x)
         {
             if (!dictionary.ContainsKey(x.Message))
             {
                 dictionary.Add(x.Message, x);
             }
         });
         ModalDialog current = ModalDialog.GetCurrent(page);
         current.ShowDialog(dictionary.Values.ToArray <InfoCore>());
     }
 }
Beispiel #2
0
        public static void ShowServerError(string errorString, string detailString, System.Web.UI.Page page)
        {
            ModalDialog current = ModalDialog.GetCurrent(page);

            current.ShowDialog(ClientStrings.Error, errorString, string.Empty, ModalDialogType.Error);
        }