February 2010
Beginner
400 pages
11h 13m
English
Silverlight has some great functionality that allows you to interact with the web page through something called the HTML bridge. The HTML bridge allows you to modify DOM elements and call JavaScript functions from within your Silverlight application. The reverse is also possible, allowing you to call Silverlight functions from within JavaScript. Note that Silverlight utilizes parts of the DLR (refer to Chapter 3) to perform some of this functionality (Silverlight was one of the first applications to benefit from the DLR).
Select the Chapter14.HelloSilverlight.Web project:
Open ~\Chapter14.HelloSilverlightTestPage.aspx.
Add the following code within the page's <head> ...