title: add script to asp.net content page
body: <p>I have a google map script that works, but I can't figure out how to add it to my asp.net content page. What is the proper way to add the script to the page?</p>
  
  <p>see code:</p>
  
  <pre><code> &lt;%@ Page Title="Our Location" Language="VB"     MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="false" CodeFile="Location.aspx.vb" Inherits="About_Location" %&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"&gt;
  &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no" /&gt; 
  
  &lt;script type="text/javascript"   
    src="http://maps.google.com/maps/api/js?sensor=false"&gt; 
  &lt;/script&gt; 
  
  &lt;style type="text/css"&gt;  
  html { height: 100% }   
  body { height: 100%; margin: 0px; padding: 0px }  
  ##map{ height: 100% } 
  &lt;/style&gt; 
  
  &lt;/asp:Content&gt;
  
  
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="cpMainContent" Runat="Server"    OnLoad="codeAddress()"&gt;
  
  &lt;script type= "text/javascript"&gt;
  
  var geocoder;
  var map;
  var marker;
  
  function codeAddress() {
      alert("hello")
  
  
      //initializes the map
  
      //create geocoder
      geocoder = new google.maps.Geocoder();
      //set options for the map being created
      var myOptions = {
          mapTypeId: google.maps.MapTypeId.ROADMAP
      };
      //create map instance and pass it the myOptions object literal
      map = new google.maps.Map(document.getElementById("map"), myOptions);
  
      //geocode to get the lat and lng points of the given address
      geocoder.geocode({ 'address': 'New York, New York'}, function (results, status) {
          if (status == google.maps.GeocoderStatus.OK) {
              //if geocoder finds location
              //center the map on the latlng points of the given address
              map.setCenter(results[0].geometry.location);
              map.setOptions({ zoom: 18 });
              //create marker and place it on the address
              marker = new google.maps.Marker({
                  map: map,
                  position: results[0].geometry.location,
                  title: 'New York, New York'
              });
          }
          else {
              //if geocoder cannot find location, alert user
              alert("Could not find location");
          }
      });
  
  
  
  
  }
  
  
  
  
  
  &lt;/script&gt;
  
  &lt;div id="map" style="width:700px; height:400px;"&gt;&lt;/div&gt; 
  
  &lt;/asp:Content&gt;
  </code></pre>