O'Reilly logo

Microsoft® Visual Web Developer™ 2008 Express Edition Step by Step by Eric Griffin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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"
src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6"></script>

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required