Add JavaScript to an ASP.Net page

Add JavaScript to an ASP.Net page

In this video tutorial, 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).

Hosted by microsoft.com
Creator's Site: www.asp.net
Curated By: rmansur

Comments

+1
dineshak7 8 months ago
nice expLANATION
+1
pckujawa 2 weeks ago
View on the original page: http://www.asp.net/Learn/videos/video-276.aspx. Not being able to pause/manipulate the video is a real drag. What's with the inconsistent video controls on this site? (I'm using Firefox.)
Add your comment:

World's Fastest Bicycle Goes 75mph

Cycling enthusiasts, behold. Fastest bicycle in the world, designed by VARNA of British Columbia. Pretty impressive. Check it out, Barbara Buatois of France completes her new One Hour World Record at ...

Knit Your Food

Knitted delectable delights from Ed Bing Lee. Inspired? Gotta start somewhere. Previously, Crocheters Like to Party, Too. English Ladies Knit Entire Village.

Bomb-Proof Your Home With Wallpaper

Incredible. A company called Berry Plastics (in partnership with the U.S. Army Corps of Engineers) has developed a working bomb proof wallpaper. The technology has the ability to protect against both ...

Tattoo Yourself (or Your Girlfriend)

Henna. Beautiful, fun, exotic... and best of all... Do-It-Yourself (with a little practice). Also, unlike tattoos, it's temporary. Henna generally lasts for 1-3 weeks. An ancient tradition, henna is ...

The Mother of all Ping Pong Guns - LETHAL

The lethal pneumatic ping pong gun. This thing isn't exactly wife approved. Creator Ron Kessinger built this mighty powerful ping pong launcher - "a variation on a potato cannon, built to run on ...

loading...