private static void sm_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
		{
			ScriptManager sm = (ScriptManager)sender;

			if (e.Exception != null)
				sm.AsyncPostBackErrorMessage = e.Exception.GetRealException().Message;
		}
Пример #2
0
 protected void scriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     if (e.Exception != null && e.Exception.InnerException != null)
     {
         scriptManager.AsyncPostBackErrorMessage = e.Exception.InnerException.Message;
         if (e.Exception.InnerException.InnerException != null)
             scriptManager.AsyncPostBackErrorMessage = string.Concat(scriptManager.AsyncPostBackErrorMessage, " | (inner exception: ", e.Exception.InnerException.InnerException.Message, ")");
     }
 }
Пример #3
0
        protected void ScriptManagerAsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
        {
            string exceptionMessge = e.Exception.InnerException != null ? e.Exception.InnerException.Message : e.Exception.Message;
            string userMessage = string.Empty;

            if (string.IsNullOrEmpty(userMessage))
            {
                userMessage = "Ha ocurrido un error mientras se realizaba la petición al servidor.";
            }

            scriptManager.AsyncPostBackErrorMessage = userMessage;
        }
Пример #4
0
 /// <summary>
 /// Async postback error handler
 /// </summary>
 /// <param name="sender">Sender of the event.</param>
 /// <param name="e">Event Argument.</param>
 protected void DefaultScriptManager_AsynchronousPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     if (e.Exception.Data["ExtraInfo"] != null)
     {
         this.DefaultScriptManager.AsyncPostBackErrorMessage =
             e.Exception.Message +
             e.Exception.Data["ExtraInfo"].ToString();
     }
     else
     {
         this.DefaultScriptManager.AsyncPostBackErrorMessage =
             "An unspecified error occurred.";
     }
 }
		protected void ScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e) {
			string sError = String.Empty;

			if (e.Exception != null) {
				Exception objErr = e.Exception;
				sError = objErr.Message;
				if (objErr.StackTrace != null) {
					sError += "\r\n<hr />\r\n" + objErr.StackTrace;
				}

				if (objErr.InnerException != null) {
					sError += "\r\n<hr />\r\n" + objErr.InnerException;
				}

				SiteData.WriteDebugException("popup master - AsyncPostBackError", objErr);
			} else {
				sError = " An error occurred. (Generic Main) ";
			}

			ScriptManager1.AsyncPostBackErrorMessage = sError;
		}
Пример #6
0
        protected void ToolkitScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
        {

        }
 protected void ScriptManager1_AsyncPostBackError(object sender,
     AsyncPostBackErrorEventArgs e)
 {
     ToolkitScriptManager1.AsyncPostBackErrorMessage =
         "Ha ocurrido un error en la peticion: " +
         e.Exception.Message;
 }
Пример #8
0
 protected void sm1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     sm1.AsyncPostBackErrorMessage = e.Exception.Message;
 }
Пример #9
0
 protected void AjaxScriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
 }
Пример #10
0
 protected void ScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     throw e.Exception;
 }
Пример #11
0
 private static void AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     OnError(sender, e);
 }
Пример #12
0
 protected void scmPrincipal_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     scmPrincipal.AsyncPostBackErrorMessage = e.Exception.Message;
     throw e.Exception;
 }
Пример #13
0
 protected void OnAsyncPostBackError_Method(object sender, AsyncPostBackErrorEventArgs e)
 {
     ScriptManager1.AsyncPostBackErrorMessage = "Sorry for the Error in Ajax - " + e.Exception.Message;
 }
Пример #14
0
 protected void ScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     SysLog.LogSystemError(e.Exception);
 }
        void _scriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
        {
            var exception = e != null ? e.Exception : null;
            if (exception == null) return;

            var fullException = exception;

            var eKind = Sage.Platform.Diagnostics.ErrorHelper.GetTargetedException(fullException, out exception);

            var eMitigationType = Sage.Platform.Diagnostics.ErrorHelper.GetMitigationType(eKind, Request);

            var sSlxErrorId = Sage.Platform.Diagnostics.ErrorHelper.GetNewLoggingId();

            if (Sage.Platform.Diagnostics.ErrorHelper.ExceptionMustBeLogged(eKind))
            {
                Sage.Platform.Diagnostics.ErrorHelper.LogException(fullException, Request, log,
                                                                   string.Format(
                                                                       "{0} unhandled exception during async postback",
                                                                       Sage.Platform.Diagnostics.ErrorHelper.
                                                                           GetCurrentEventLogSource()), sSlxErrorId);
            }

            Server.ClearError();

            switch (eMitigationType)
            {
                case Sage.Platform.Diagnostics.ErrorHelper.MitigationType.AjaxLoginRedirect:
                case Sage.Platform.Diagnostics.ErrorHelper.MitigationType.LoginRedirect:
                    FormsAuthSignOut();
                    Response.Redirect("Login.aspx");
                    break;

                default:
                    _scriptManager.AsyncPostBackErrorMessage =
                        Sage.Platform.Diagnostics.ErrorHelper.GetErrorMessageContent(exception, Request, eKind,
                                                                                     sSlxErrorId, true, true,
                                                                                     Resources.SalesLogix.
                                                                                         MailDetailsLink);
                    break;
            }
        }
Пример #16
0
 protected void MainScriptManager_OnAsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     if (Request.IsLocal && Config.LogAjaxErrorsFromLocalhost || !Request.IsLocal)
         Global.Fatal(e.Exception, HttpContext.Current, Page.User.Identity);
 }
 protected void ScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     //在这里,可以指定自定义异常信息。
   ScriptManager1.AsyncPostBackErrorMessage= "异常信息为:" + e.Exception.Message;
 }
Пример #18
0
 protected override void OnAsyncPostBackError(AsyncPostBackErrorEventArgs e)
 {
     if ((this.CatchTimeOut && e.Exception.Message == "75FF57F7-7AC0-43c8-9454-C92B4A2723BB") || string.IsNullOrEmpty(CliUtils.fLoginUser))
     {
         this.Page.Response.Redirect(TimeOutUrl);
     }
     else if (CatchErrorMessage)
     {
         this.Page.Session["LastAjaxError"] = e.Exception;
         this.Page.Response.Redirect("~/Error.aspx");
     }
     base.OnAsyncPostBackError(e);
 }
Пример #19
0
    protected void ScriptManager1_AsyncPostBackError (object sender, AsyncPostBackErrorEventArgs e)
    {
        if (this.Page is PageV4Base)
        {
            ((PageV4Base)this.Page).AsyncPostBackError(ScriptManager1, sender, e);
        }
        else
        {
            ScriptManager1.AsyncPostBackErrorMessage = "There was an error while doing a partial page update:\r\n" + e.Exception.ToString();
        }

    }
Пример #20
0
 protected void HandlerForAsyncPostBackErrors(object sender, AsyncPostBackErrorEventArgs e)
 {
     CurrentScriptManager.AsyncPostBackErrorMessage = e.Exception.Message;
 }
Пример #21
0
 protected void ScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     Response.Write(e.Exception.StackTrace.ToString());
 }
 protected void OnAsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     scmPeople.AsyncPostBackErrorMessage = e.Exception.Message;
 }
Пример #23
0
 protected void ScriptManager1_AsyncPostBackError(object sender,
    AsyncPostBackErrorEventArgs e)
 {
     ToolkitScriptManager1.AsyncPostBackErrorMessage =
         "Oh, Disculpame me he equivocado vuelve a intentar: " +
         e.Exception.Message;
 }
 protected void RadScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     RadScriptManager1.AsyncPostBackErrorMessage = "Error inesperado:\n" + e.Exception.Message;
 }
 protected void GlobalScriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     GlobalScriptManager.AsyncPostBackErrorMessage = ExceptionHandler.ThrowAJAXException(e.Exception);
 }
Пример #26
0
 public virtual void AsyncPostBackError(ScriptManager scriptManager, object sender, AsyncPostBackErrorEventArgs e)
 {
     scriptManager.AsyncPostBackErrorMessage = "There was an error while doing a partial page update:\r\n" + e.Exception.ToString();
 }
 void scriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     ScriptManager.GetCurrent(this.Page).AsyncPostBackErrorMessage = "We're sorry, an unexpected error has occurred.";
 }
 protected void AjaxScriptManager_OnAsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     AjaxScriptManager.AsyncPostBackErrorMessage = e.Exception.ToString();
 }
 protected void ScriptManager1_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
 {
     ScriptManager1.AsyncPostBackErrorMessage = e.Exception.Message;
 }
        void _scriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
        {
            var exception = e != null ? e.Exception : null;

            if (IsAuthenticatedEx() == ErrorHelper.ResultKind.False)
            {
                if (log.IsWarnEnabled && ErrorHelper.LogAuthenticationRedirects())
                {
                    log.WarnEx("The user is either not authenticated yet or their authentication has been revoked (e.g. the ASP.NET Session may have ended).", EventIds.AdHocEvents.WarnAuthenticationRedirect, exception);
                }
                Server.ClearError();
                var message = (ErrorHelper.LooksLikeAjaxRequest(Request)) ?
                                  string.Format("${{{0}}}", ErrorHelper.MitigationType.AjaxLoginRedirect)
                                  : string.Format("${{{0}}}", ErrorHelper.MitigationType.LoginRedirect);
                _scriptManager.AsyncPostBackErrorMessage = message;
                if (ErrorHelper.LooksLikeAjaxRequest(Request) == false)
                {
                    LoginRedirect(false, null);
                }
                return;
            }

            if (exception == null) return;

            var fullException = exception;

            var eKind = ErrorHelper.GetTargetedException(fullException, out exception);

            var eMitigationType = ErrorHelper.GetMitigationType(eKind, Request);

            var sSlxErrorId = ErrorHelper.GetNewLoggingId();

            if (ErrorHelper.ExceptionMustBeLogged(eKind))
            {
                ErrorHelper.LogException(fullException, Request, log, string.Format("{0} unhandled exception during async postback", ErrorHelper.GetCurrentEventLogSource()), sSlxErrorId, ErrorHelper.GetCurrentEventLogSource());
            }

            Server.ClearError();

            switch (eMitigationType)
            {
                case ErrorHelper.MitigationType.AjaxLoginRedirect:
                    _scriptManager.AsyncPostBackErrorMessage = string.Format("${{{0}}}", ErrorHelper.MitigationType.AjaxLoginRedirect);
                    break;

                case ErrorHelper.MitigationType.LoginRedirect:
                    _scriptManager.AsyncPostBackErrorMessage = string.Format("${{{0}}}", ErrorHelper.MitigationType.LoginRedirect);
                    LoginRedirect(false, sSlxErrorId);
                    break;

                default:
                    _scriptManager.AsyncPostBackErrorMessage = ErrorHelper.GetErrorMessageContent(exception, Request, eKind, sSlxErrorId, true, true, Resources.SalesLogix.MailDetailsLink);
                    break;
            }
        }