[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Google Maps Intergration of Address Location Map

Posted on 2011-10-07
Medium Priority
Last Modified: 2013-12-16
I have a C# application that will give me the address of a house sale, I am wanting to attach the location of the google maps on the website how could I accomplish this I will only have the physical address of the house.
Question by:k_hoffhines
  • 3
  • 2
LVL 13

Accepted Solution

Molnar István earned 2000 total points
ID: 36931988
you can use http://en.googlemaps.subgurim.net/ - free google map asp.net user control

hope it helps

Author Comment

ID: 36932397

    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Google Maps API Sample</title>
    <script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAuPsJpk3MBtDpJ4G8cqBnjRRaGTYH6UMl8mADNa0YKuWNNa8VNxQCzVBXTx2DYyXGsTOxpWhvIG7Djw" type="text/javascript"></script>
    <script type="text/javascript">

        var map = null;
        var geocoder = null;

        function initialize() {
            if (GBrowserIsCompatible()) {
                map = new GMap2(document.getElementById("map_canvas"));
                map.setCenter(new GLatLng(37.4419, -122.1419), 13);
                geocoder = new GClientGeocoder();

        function showAddress(address) {
            if (geocoder) {
          function (point) {
              if (!point) {
                  alert(address + " not found");
              } else {
                  map.setCenter(point, 13);
                  var marker = new GMarker(point);

  <body onload="initialize()" onunload="GUnload()" style="font-family: Arial;border: 0 none;">
    <form action="#" onsubmit="showAddress(this.address.value); return false">
         <input type="text" size="60" name="address" value="1600 Amphitheatre Pky, Mountain View, CA" />
         <input type="submit" value="Go!" />
       <div id="map_canvas" style="width: 500px; height: 300px"></div>

Author Comment

ID: 36932402
I did find this online, but I want it to "pull" the sql data were the address value is at any suggestions?
LVL 13

Expert Comment

by:Molnar István
ID: 36932655
if you have just one address, you can create a server variable and pass to javascript:
var myClientVariable = '<%= myServerVariable %>';
LVL 13

Expert Comment

by:Molnar István
ID: 36932662
the server variable must be Public

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question