Joe On ASP.NET

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

Comments

Gordon S. said:

Thanks !!!

Info on $get syntax was very hard to find.

Syntax info in general is hard to find.

ASP.NET is loaded with new syntax.

How about something in a  video on that.

Also, thanks for the great ASP.NET videos.

# February 15, 2009 4:54 PM

Welding Electrodes said:

Hah, seriously? That's rediculous. No way

# December 19, 2011 6:39 AM

lysol steam mop said:

Are you serious? I am not so sure about the legitimacy of your facts. Seems kinda bogus.

<a href=www.steammopsforsale.com/.../>steam mop reviews </a>

# January 7, 2012 12:34 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)