ASP.NET AJAX Shorthand Syntax

Did you know that ASP.NET AJAX include these shorthand notations for commonly used commands ?

$

get( 'YourControlName')

Shortcut to Sys.UI.DomElement.getElementById - gets a reference to the DOM element, same as document.getElementById

$find(

)

Shortcut to Sys.Application.findComponent

$create( )

Shortcut to Sys.Application.Component.create

$addHandler(FormElement, EventName, HandlerMethod )

Shortcut to Sys.UI.DomEvent.addHandler

$clearHandlers(FormElement )  

Shortcut to Sys.UI.DomEvent.clearHandlers

$removeHandler(FormElement )  

Shortcut to Sys.UI.DomEvent.removeHandler