Error Handling in OnError()

1 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 16 May 2008 Link to this post

    I have following in Master Page.
    and following in BasePage.

    In OnError() I get Server.GetLastError(). Now, I want to display the message as javascript alert() or radalert() from OnError and do the Server.ClearError(). - first of all is it good idea?

    Next, whatever message I set to AsyncPostBackErrorMessage  - as per documents - it is sent to browser. But then what happens to it? How can I get it on the client side and display it?
    radScriptManager1.AsyncPostBackErrorMessage = exception.message

    Will Page.OnError() be called in case of AsyncError?

    Is it first of all good idea to display all errors back to user as alert() box?
Back to Top