Add markers in google maps
<p>Here is the code:</p>

<pre><code>&lt;div class="mgn-top-10"&gt;
                      &lt;asp:Label ID="lbcontact" runat="server" &gt;&lt;/asp:Label&gt;



  &lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;

    &lt;script type="text/javascript"&gt;
        window.onload = function () {
            var lat = document.getElementById('latitude').innerHTML;
            var lan = document.getElementById('longitude').innerHTML;
            var mapOptions = {
                center: new google.maps.LatLng(lat, lan),
                zoom: 14,
                mapTypeId: google.maps.MapTypeId.ROADMAP
            };
            var infoWindow = new google.maps.InfoWindow();
            var latlngbounds = new google.maps.LatLngBounds();
            var map = new google.maps.Map(document.getElementById("dvMap"), mapOptions);
            google.maps.event.addListener(map, 'click', function (e) {
                document.getElementById('latitude').innerHTML= e.latLng.lat();
                document.getElementById('longitude').innerHTML = e.latLng.lng();

            });

        }

 &lt;/script&gt;

            &lt;asp:Label ID="latitude" runat="server" ForeColor ="#f8f5f5" &gt;&lt;/asp:Label&gt;

               &lt;asp:Label ID="longitude" runat="server" ForeColor ="#f8f5f5" &gt;&lt;/asp:Label&gt;

    &lt;div id="dvMap" style="width: 700px; height: 300px"&gt;
    &lt;/div&gt;   &lt;/div&gt;
</code></pre>

<p>I have reused Google Maps code written in asp.net, I want to add a marker in map's, it's currently my university task.</p>

<p>Please help me out.</p>

<p>Google map's are already working perfectly but no marker's.</p>

<p>Thanks in advance</p>

<p>as suggested:</p>

<pre><code>&lt;script type="text/javascript"&gt;
        window.onload = function () {
            var lat = document.getElementById('latitude').innerHTML;
            var lan = document.getElementById('longitude').innerHTML;
            var mapOptions = {
                center: new google.maps.LatLng(lat, lan),
                zoom: 14,
                mapTypeId: google.maps.MapTypeId.ROADMAP
            };
            var infoWindow = new google.maps.InfoWindow();
            var latlngbounds = new google.maps.LatLngBounds();
            var map = new google.maps.Map(document.getElementById("dvMap"), mapOptions);
            var myLatLng = {lat: -25.363, lng: 131.044};
            var marker = new google.maps.Marker({
  position: myLatLng,
  map: map,
  title: 'Hello World!'
});
            google.maps.event.addListener(map, 'click', function (e) {
                document.getElementById('latitude').innerHTML= e.latLng.lat();
                document.getElementById('longitude').innerHTML = e.latLng.lng();

            });

        }

 &lt;/script&gt;
</code></pre>