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
- Anonymous
August 16, 2007
PingBack from http://msdnrss.thecoderblogs.com/2007/08/16/aspnet-ajax-shorthand-syntax/