Implementing the Store Locator Application Using ASP.NET MVC (Part 1)

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Back in May 2010 I wrote a three-part article series titled http://www.4guysfromrolla.com/articles/051910-1.aspx Building a Store Locator ASP.NET Application Using Google
Maps API , which showed how to build a simple store locator application using ASP.NET and the Google Maps API. The application consisted of two ASP.NET pages. In the
first page, the user was prompted to enter an address, city, or postal code ( http://aspnet.4guysfromrolla.com/images/GoogleMaps3.gif screen shot ).
On postback, the user-entered address was fed into the Google Maps APIs http://code.google.com/apis/maps/documentation/geocoding/ geocoding
service to determine whether the address, as entered, corresponded to known latitude
and longitude coordinates. If it did, the user was redirected to the second page with the address information passed through the querystring. This page then queried
the database to find nearby stores and listed them in a grid and as markers on a map ( http://aspnet.4guysfromrolla.com/images/GoogleMaps10.gif screen shot ).

Since the WebForms store locator application was published, several readers have emailed me to ask for an
http://www.asp.net/mvc ASP.NET MVC version. I recently decided to port the existing WebForms application to ASP.NET MVC. This article,
the first in a two-part series, walks through creating the ASP.NET MVC version of the store locator application and pinpoints some of
the more interesting and challenging aspects. This article examines creating the ASP.NET MVC application and building the functionality for the user
to enter an address from which to find nearby stores. Part 2 will examine how to show a grid and map of the nearby stores. Read on to learn more!

http://www.4guysfromrolla.com/articles/081810-1.aspx" class="readmore Read More >

View the full article
 
Back
Top