UpdatePanel Exception Handling

前端 未结 3 2095
遇见更好的自我
遇见更好的自我 2021-02-01 22:42

Where exceptions occur in the UpdatePanels I\'ve implemented in the ASP.NET web app I\'m building, they cause a JavaScript error on the page with some high level error output av

3条回答
  •  梦毁少年i
    2021-02-01 22:55

    Could you override the page level error method, catch the exception and handle how you see fit.

    protected override void OnError(EventArgs e)
    {
        //show error message here
    }
    

提交回复
热议问题