Google Maps Intergration of Address Location Map

Posted on 2011-10-07
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
    LVL 13

    Accepted Solution

    you can use - free google map user control

    hope it helps

    Author Comment


        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title>Google Maps API Sample</title>
        <script src=";v=2&amp;sensor=false&amp;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

    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
    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
    the server variable must be Public

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
    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…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now