I have following in Master Page.
ScriptManager1_AsyncPostBackError()
and following in BasePage.
OnError().
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?
-Piyush
ScriptManager1_AsyncPostBackError()
and following in BasePage.
OnError().
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?
-Piyush