Summary of DirectEvents

The action of each of the following samples will trigger a DirectEvent Ajax request to the server and return a Notification Window to the browser.

Add a <Click> DirectEvent to <ext:Button>

Add a <Click> DirectEvent with confirmation to <ext:Button>

Add a Click DirectEvent to <asp:Button>

Add a Click DirectEvent to a standard html <input> button

Add a Click DirectEvent to html <span> element

*Click Me*

Add a Click DirectEvent to several html <div> elements by using a Target Query

By using a Target Query we can attach the same DirectEvent (or Listener) to several html elements or Controls and fire a server-side event.

The target(s) do not require an "id" and do not need a runat="server" attribute. The elements can be any html element available on the Page.

The following Target Query will select all <div> elements on the Page that contain the css class "box", but do not contain the css class "red".

Click Me
Not Me
Click Me too!