AspNetCore.Docs/aspnet/web-forms/videos/how-do-i/how-do-i-add-javascript-eve...

1.4 KiB

uid title author description ms.author ms.date ms.assetid msc.legacyurl msc.type
web-forms/videos/how-do-i/how-do-i-add-javascript-event-handlers-to-aspnet-server-controls [How Do I:] Add JavaScript Event Handlers to ASP.NET Server Controls | Microsoft Docs rick-anderson In this video Chris Pels will show how to interface JavaScript methods with ASP.NET server controls to provide client side functionality for the server contr... aspnetcontent 03/20/2008 4e8d3220-3299-41ad-897b-bbf62e2e667f /web-forms/videos/how-do-i/how-do-i-add-javascript-event-handlers-to-aspnet-server-controls video

[How Do I:] Add JavaScript Event Handlers to ASP.NET Server Controls

by Chris Pels

In this video Chris Pels will show how to interface JavaScript methods with ASP.NET server controls to provide client side functionality for the server controls. First, see how to add client event handlers declaratively by extending ASP.NET server controls with custom attributes. Next, see how to add attributes for mapping client methods to ASP.NET server controls programmatically which offers the advantage of being done at runtime. Finally, learn how to reference the ID of a server control, which is rendered dynamically by ASP.NET, in JavaScript code.

▶ Watch video (18 minutes)