"
 
 
 
ASP.NET (snapshot 2017) Microsoft documentation and samples

[How Do I]: Add Client Script Event Handlers Controls on an ASP.NET Page?

by Chris Pels

In this video Chris Pels shows how to add client script events to controls on an ASP.NET page. First, several ASP.NET controls are added to the page and an event handler is added for standard server-side processing of the Click event for a button. Next, client side JavaScript event handlers are added for Mouseover and Mouseout client side events that call JavaScript functions on the page to change a button background color. Next, key presses are captured for a textbox by adding a client side event handler. Then the OnClientClick attribute is shown as the way to handle client site click events for a button in addition to server side processing. Finally, several client side event handlers are defined by adding them programmatically in the server Page_Load event.

▶ Watch video (12 minutes)





Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnet/web-forms/videos/how-do-i/how-do-i-add-client-script-event-handlers-controls-on-an-aspnet-page.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>