Language

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

By |12 minutes|
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.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

Chris Pels

By Chris Pels, Chris has been instrumental in the architecture, development, and implementation of a wide variety of business systems and databases as a technology consultant since 1986. He has extensive experience in business analysis, technical specifications, database design, several programming languages including C# and VB.NET, and statistical analysis. He holds a Ph.D. from The University of Michigan and has been a speaker at Microsoft TechEd, Microsoft DevDays, VSLive, numerous events in New England

Table of Contents

How Do I?

Tailspin Spyworks

Building 3.5 Applications

Authentication

SQL 2005

VS 2005

Migrating

Building 2.0 Applications

IIS

Visual Studio 2010

Ajax Control Toolkit

ASP.NET AJAX

Data Access

ASP.NET Dynamic Data

ASP.NET 3.5

jQuery

.NET 4

ASP.NET Web Forms vNext

ASP.NET vNext

Visual Studio vNext

Pluralsight Introduction to ASP.NET 4 WebForms