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

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Last weeks article, http://www.4guysfromrolla.com/articles/081810-1.aspx Implementing the Store Locator Application Using ASP.NET MVC (Part 1) , started
a two-part article series that walked through converting my http://www.4guysfromrolla.com/articles/051910-1.aspx ASP.NET store locator application from
WebForms to ASP.NET MVC. Last weeks article stepped through the first tasks in porting the store locator application to ASP.NET MVC, including: creating the new
project; copying over stylesheets, the database, scripts, and other shared content from the WebForms application; building the
Code:
HomeController
; and coding
the
Code:
Index
and
Code:
StoreLocator
actions and views.

Recall that the
Code:
StoreLocator
action and view prompts the user to enter an address for which to find nearby stores. On form submission, the action interfaces
with the http://code.google.com/apis/maps/ Google Maps API s geocoding service to determine if the entered address corresponds to known latitude and
longitude coordinates. If so, the user is redirected to the
Code:
StoreLocatorResults
action (which we create in this article) that displays the nearby stores in
both a grid and as markers on a map. Unlike the
Code:
StoreLocator
action created in Part 1, the
Code:
StoreLocatorResults
action uses a more intricate
model and a strongly-typed view. Read on to learn more!

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

View the full article
 
Back
Top