I am creating a store locator proximity map using Google Maps API and GMapsEZ. This is then placed in an IFrame using DNN.
Basic Functionality: On initial load, the user is shown a default map that is centered on the "center" of the city we serve and having a radius of 20 miles. This leaves out one of our "outlying" locations, but covers most of our users.
On PostBack, the user can enter their address or zip to get the same map as before, but centered on their address/zip and the markers shown are displayed and listed according to proximity to the entered address. They can also filter the results by selecting a radius (5, 10, 20, or 50 miles) and/or by service offered (chosen from a drop-down list).
What I'm trying to do: I also have individual pages with detailed information for each location. When a user is coming from one of those pages, I want to pass the location address as the starting point for the proximity map, so the outlying location will show up, which I'm passing as a Query String: http://mysite.com/myIFramePage.aspx?locAddress=123%20Main%20St&locCity=My%20Town.
So, I set up the IFrame Options as follows:
Option
Link Type: URL ( A Link To An External Resource )
Location ( Enter The Address Of The Link): http://mysite.com/dir/subdir/Proximity.aspx
QueryString Parameters
Name: locAddress
Value: Pass-Through QueryString
Unnamed Field: locAddress
Name: locCity
Value: Pass-Through QueryString
Unnamed Field: locCity
Assumptions: The Name field is what is passed to the IFrame (e.g. /IFrame.aspx?locAddress=123%20Main%20St&locCity=My%20City) and the Unnamed field is what it passed on to the underlying aspx file (e.g. http://mysite.com/dir/subdir/Proximity.aspx?locAddress=123%20Main%20St&locCity=My%20City). But, I get this error:
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Home/LocationsTest.aspx
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Alternately, if I use "+" in place of the %20, it doesn't throw the error, but it also doesn't center on the address. What am I missing? Thanks in advance, Jim Bob PS: I've tried it with Friendly URLs off and on. Same issue each time.