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

1.4 KiB

title author description ms.author manager ms.date ms.topic ms.assetid ms.technology ms.prod msc.legacyurl msc.type
[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 wpickett 03/20/2008 article 4e8d3220-3299-41ad-897b-bbf62e2e667f dotnet-webforms .net-framework /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)