Appendix D. ASP.NET AJAX Reference
ASP.NET AJAX provides several JavaScript helper APIs and adds new functionality to existing JavaScript objects. This appendix shows a selective list of the most important functions and methods.
Helper Functions
ASP.NET AJAX comes with several useful helper functions. The most important ones have shortcut function names prefixed with a dollar sign ($
).
Property | Description |
| Adds an event handler for an event to a DOM element |
| Adds several event handlers to a DOM element |
| Removes all event handlers attached to a DOM element |
| Creates a component and initializes it |
| Searches for a component by its ID |
| Searches for a DOM element by its ID |
| Removes one specific event handler from a DOM element |
Object Extensions
ASP.NET AJAX extends some standard JavaScript objects like strings and Booleans with additional methods. The extensions for the JavaScript Error
object are mostly used internally, but the other object extensions are also suitable for custom code.
Array Extensions
All Array
methods need to be called statically (e.g., Array.add( )
).
Method | Description |
| Adds an element to the array |
| Adds elements to the array |
| Empties the array |
| Creates a copy of the array |
| Whether ... |
Get Programming ASP.NET AJAX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.