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

Please install Silverlight or click download to watch video locally.

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.

Presented by Chris Pels

Duration: 12 minutes, 50 seconds

Date: 23 April 2009

Watch    Video   |   Download    Video   |   VB Code    C# Code

Video downloads: WMV  |  Zune  |  iPod  |  PSP  |  MPEG-4  |  3GP

Audio downloads: AAC  |  WMA  |  MPEG-4  |  MPEG-3  |  MPEG-2

Comments : 20

Leave a Comment

liammcmullen : On April 23, 2009 9:01 PM said:

good Video Chris - would you think about doing one on jQuery?

thanks

bagheri1368 : On April 24, 2009 5:36 PM said:

this is very nice movie

sean.gahan : On April 24, 2009 6:26 PM said:

Very easy to follow. Thanks for taking the time for the video.

Best regards,

Sean Gahan

atarikg : On April 24, 2009 11:14 PM said:

I thought it'd be a little different and advanced but it's good sample for new learners.

Thanks.

danielszabo1981 : On April 25, 2009 6:06 AM said:

great job, Chris. very good video for beginners and a great refresher for seasoned jscripters. thank you for taking the time to do this -- its a GREAT service to the development community :)

yadugna : On April 25, 2009 8:58 AM said:

Very nice video. Canyou add some more examples

nisarkhan : On April 25, 2009 10:01 PM said:

Chris: it will be nice to see JQuery series of videos.

Posted at 00:46 in the video

sensei_cz1 : On April 28, 2009 11:18 AM said:
test comment

Posted at 04:05 in the video

mustak173 : On April 28, 2009 10:54 PM said:
is there a firefox equiv. for window.event.srcElement?
tmorton : On April 29, 2009 2:43 AM said:

Great video!

uwspstar : On April 29, 2009 3:08 PM said:

great !!!

silla : On April 29, 2009 4:58 PM said:

Thank you Chris. Nice and simple to follow video.

Tesfaye

sobinscott : On May 04, 2009 2:42 PM said:

Not working in FireFox....... :(

sobinscott : On May 04, 2009 2:43 PM said:

not working in FF

dranoelp : On May 04, 2009 4:56 PM said:

Great tip. Thanks for the video. This gives me a lot of ideas.

AsifAshraf : On May 07, 2009 9:18 AM said:

how to series has always been for very basic leaners, I believe.

Very very basic video and MS has given the least study on client side stuff. I hope they would do better in the future.

Thanks

haithemara : On May 09, 2009 7:14 AM said:

Good video.

How about a video where you can change the behavior of gridview with javascript.

Thank you.

lionmaster : On May 11, 2009 6:42 AM said:

It's a good video that helps all beginner programers to make Asp Pages.

Stewsterl : On May 13, 2009 1:26 PM said:

Thanks Chris...

hasanlakhani : On May 21, 2009 7:32 PM said:

yes.. Please do some work on jQuery

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities