Last post Feb 15, 2012 07:53 PM by sushanth009
Feb 15, 2012 01:22 PM|ian_c22|LINK
Wonder if anyone can help. I'm trying to implement the ToolScriptManager OnAsyncPostBackError.
The ToolkitScriptManager is on the Masterpage and I've set the OnAsyncPostBackError property:
On my content page I'm catching an exception and, logging it and then throwing it
catch (Exception ex)
private void LogError(Exception ex, bool full)
_presenter.LogError(this, error, ex);
where it then gets picked up by the handler on the Master Page
protected void ScriptManager_AsyncPostBackError(object sender, AsyncPostBackErrorEventArgs e)
ToolkitScriptManager.AsyncPostBackErrorMessage = e.Exception.Message;
This all works as expected, I'm picking up the error via the PageRequestManager EndRequest and displaying on the page
The problem is that I'm getting an Application_Error in my Global.asax stating that an Exception of type 'System.Web.HttpUnhandledException' was thrown.
I kinda get it I think, cause I'm throwing the exception which is not caught by a catch I'm assuming?!
Any advice on what I'm missing, or where in fact I'm going wrong?
Thanks in advance!
Feb 15, 2012 05:14 PM|sushanth009|LINK
Paste the code that is under the script tag.. It would help..
Feb 15, 2012 07:24 PM|ian_c22|LINK
Hi, sorry which code are you after? If it makes it clearer the Unhandled Exception occurs where I'm throwing ex from the LogError method.
Thanks for the reply btw.
Feb 15, 2012 07:53 PM|sushanth009|LINK