Skip Navigation LinksHome > Categories > Code from a Category google map example: show addresses fetched from database

User Name: jamest85
Name: James Tang
Contact Me:
Home Page:
Google Apps for Work Partner, Certified Zoho CRM Consultant. 7 years experience on Zoho consulting, implementation, and programming using C#, VB, Php..., 15 years of total IT experience including prog... [More]
Viewed Times: 15617
Add Date: 11/21/2010
This post shows how to use Google Map in web site.
You can first have a look the Demo here.

Before start to integrate Google Map to website, had searched online about 2 days and finally I picked up this tutorial on c-sharpcorner, it is very easy to understand and straight forward.

Files we need:
1. GoogleObject.cs (you can put any where, I put it in App_Code)

2. GServices.cs (same folder as above).

3. GService.asmx (you can put any where), but make sure below code is pointing to the file:
4. Also, in GService.asmx, make sure you are pointing to GService.cs file correctly, for example: 5. GoogleMapForASPNet.ascx, and .cs file
I notice these files have to be located in the Root folder, otherwise won't work, it seems odd, I haven't figured out a way so I can put some where else. Such as folder "googleMap"...

6. An aspx page which includs the GoogleMapForASPNet.ascx user control. 7. In the aspx page above, here is the main code: 8. Here is the Address.xml 9. Suggestion, you better read the tutorial first if you have any problems.

Comment #:  76 Replay this Comment Reply this comment Posted on: 6/23/2012 google map example: show addresses fetched from database    i have read this articale but client does not know latitude and longitude he is only know address please help me how can i featch address from saldata base without latitude and logitude please mail me code on my email id



Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.