Tuesday, September 04, 2007

ASP.NET AJAX Shorthand Syntax

CommandShortcut to
$get('YourControlName') Sys.UI.DomElement.getElementById - gets a reference to the DOM element, same as document.getElementById
$find() Sys.Application.findComponent
$create() Sys.Application.Component.create
$addHandler(FormElement, EventName, HandlerMethod)  Sys.UI.DomEvent.addHandler  
$clearHandlers(FormElement)Sys.UI.DomEvent.clearHandlers
$removeHandler(FormElement)Sys.UI.DomEvent.removeHandler

kick it on DotNetKicks.com

No comments: