Integrating Virtual Earth into the Personal Portal

To integrate Virtual Earth, you have to use JavaScript and HTML. The Virtual Earth control needs to reference a JavaScript library before you can use it. Use the following code to reference it on your page:

<script type="text/javascript"

The next decision is where to place it. You know from your layout design in Chapter 4 that the control will appear on the main site. This means that the HTML markup will likely appear in the Content control of the Main.master file. Because the Virtual Earth JavaScript library needs to be available when the markup in Main.master is displayed, you must place the library reference in the parent ...

Get Microsoft® Visual Web Developer™ 2008 Express Edition Step by Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.