How Do I: Add JavaScript to An ASP.NET Page

In this video Chris Pels will show how to include JavaScript to an ASP.NET page for use on the client page to provide a richer and more robust user experience. First, see how to include JavaScript directly within an ASP.NET page and reference the script from within HTML page elements. Next, see how to abstract the JavaScript to an external JavaScript file which offers the advantage of being cached by the browser and can be used by multiple pages. Lastly, learn how to add JavaScript to a page dynamically at runtime which has the advantage of including script for a specific situation or where information such as a control ID is not known until runtime. As part of the dynamic script sample see how to add JavaScript that can be automatically executed when the page loads as well as the click event for button controls (Button, LinkButton, and ImageButton).

Presented by Chris Pels

Duration: 24 minutes, 49 seconds

Date: 13 March 2008

Watch the video   |   Download the video   |   Get VB code  or  C# code

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

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

Comments : 2

Leave a Comment

Mirza Ashraf : On March 30, 2008 5:49 PM said:

This is a great video and it helped me a lot. Please can you create a video of

"How to pass values from a drop down list to list box"

Kind Regards

Mirza Ashraf

khaleelahmad : On June 30, 2008 2:21 PM said:

Very helpful. Thank you.

Leave a Comment

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

Featured Product

ComponentArt's New AJAX Approach