Here I am going to discuss a simple application to find your search location in the google map, by street, city, state, zip code wise. or you can also search your location by Latitude and Longitude.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Google map</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table width="300px" cellpadding="2" cellspacing="2" style="border: 1px solid maroon;">
<tr>
<td colspan="2">
<b>Search by Street, City, State and ZipCode</b>
</td>
</tr>
<tr>
<td>Street</td>
<td>
<asp:TextBox ID="txtStreet" runat="server"/>
</td>
</tr>
<tr>
<td>City</td>
<td>
<asp:TextBox ID="txtCity" runat="server"/>
</td>
</tr>
<tr>
<td>State</td>
<td>
<asp:TextBox ID="txtState" runat="server"/>
</td>
</tr>
<tr>
<td>ZipCode</td>
<td>
<asp:TextBox ID="txtZipCode" runat="server"/>
</td>
</tr>
<tr>
<td></td>
<td>
<asp:Button ID="ButtonSearch" runat="server" Text="Search" OnClick="ButtonSearch_Click" /><br />
</td>
</tr>
</table>
<div> </div>
<table width="300px" cellpadding="2" cellspacing="2" style="border: 1px solid maroon;">
<tr>
<td colspan="2">
<b>Search by Latitude and Longitude</b>
</td>
</tr>
<tr>
<td>Latitude</td>
<td>
<asp:TextBox ID="txtLat" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>Longitude</td>
<td>
<asp:TextBox ID="txtLong" runat="server"/>
</td>
</tr>
<tr>
<td></td>
<td>
<asp:Button ID="ButtonLatLong" runat="server" Text="Search by Lat Long" OnClick="ButtonLatLong_Click" CausesValidation="false" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.





Avikshith AradhyaPosted May 31, 2016, 3:14 AM
Good Article
Purushottam RathorePosted Aug 17, 2015, 6:39 AM
Thanks Yogesh Jaiswal
Yogesh JaiswalPosted Aug 17, 2015, 6:36 AM
i like.
Purvesh SanganiPosted Sep 24, 2014, 5:25 AM
i like.....This demo.
rirhandzu mhlarhieditedPosted Feb 18, 2011, 5:00 AMEdited May 3, 2011, 11:13 AM
.
kiran jagathlalPosted Oct 1, 2010, 8:55 AM
This does not work with South africa addresses.