Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Passthrough QuerystringPassthrough Querystring
Previous
 
Next
New Post
4/1/2009 2:26 PM
 

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.

 
New Post
4/1/2009 3:38 PM
 

Aha! With Friendly URLs, QueryStrings are passed as key/value pairs that look like subdirs.

So IFrame options remain the same, but the call:

http://mysite.com/myIFramePage.aspx?locAddress=123%20Main%20St&locCity=My%20Town

becomes:

http://mysite.com/tabid/99/locAddress/123%20Main%20St/locCity/My%20Town

And the QueryString makes it through.

Next question: How do you pass an anchor in?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Passthrough QuerystringPassthrough Querystring


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out