Posted on: 6/17/2014 3:39:38 PM | Views : 491

My source of error is in "map-canvas". 
It is an "ID" and should have a # in front of it but that does not work. 
Could someone tell me what format "map-canvas" shoulkd be in (similar to "<%=TextBox1.ClientID%>")
The funny thing about this is that it works when you "debug" it on localhost but it does not when you put it on the server.
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> <script type="text/javascript"> var geocoder; var map; function initialize() { geocoder = new google.maps.Geocoder(); var lat = document.getElementById("<%=TextBox1.ClientID%>").value var lon = document.getElementById("<%=TextBox2.ClientID%>").value var latlng = new google.maps.LatLng(la ...

Go to the complete details ...