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

Comments

+1
dineshak7 8 months ago
nice expLANATION
+1
pckujawa 1 week 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:

Retro Electronics Papercraft For the Brazil '66 Crowd

Dan McPharlin has created some super-sweet retro electronics papercraft models. Click through to Dan's Flickr page to view the entire collection. Beautiful handmade cardboard models. Previously ...

Cai Guo-Qiang's (Literally) Explosive Art

Attention all WonderHowTo explosive-lovers, here is an artist that just may awe and inspire... China's Cai Guo-Qiang opts for more thrilling materials than traditional paint, clay or plaster, say ...

Roly-Poly Bridge

Heatherwick Studio's London based rolling bridge is an engineering marvel. Lots of fun, and immensely satisfying to watch (via YouTube, assuming you can't see it in person). From Heatherwick Studio: ...

Master Nerd Births Perfect Copy Cat Bot

Can't help but smile at this goofy, endearing nerd "master" (Vitalijus Rodnovas) guiding his copy-cat protege robot (coined Waldo). The rig allows Waldo to mimic Rodnovas' body movements in ...

Building-Sized Überorgan Emits Heavenly Music and Farts

Tim Hawkinson is an artist who truly inspires. The Los Angeles based artist creates complex, whimsical sculptures with simple mechanics and basic materials. One of his most notable pieces is the ...

loading...