SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 149 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

The default is false. When running the page that has this
property set to true and uses the tag of the ScriptManager control, you
get the following additional code on the client:

Error Handling in the ScriptManager Control
The ScriptManager control provides an error-handling mechanism whereby you can specify
an error message or implement more in-depth logic in the event of an error. This is particularly
useful for the client experience because you can then help your users gracefully
handle errors that occur within the contents of the ScriptManager.
The two easiest ways to implement error handling for the ScriptManager control are to
use either the AsyncPostBackError event or set the AsyncPostBackErrorMessage property of the
ScriptManager tag. Here??™s an example of using the AsyncPostBackErrorMessage property:
"An error has occured within the ScriptManger tag." />
For more sophisticated error handling, however, it??™s imperative to handle the
AsyncPostBackError event.


Pages:
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161