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 ...Extracting Querystring variables from a Extracting Querystring variables from a 'Friendly' DNN URL
Previous
 
Next
New Post
10/16/2006 12:27 PM
 
Having some problems here, checking the Friendly URL docs and googling around hasn't really helped.

I have DNN 4.3.5, using the out-of-the-box Friendly URL scheme, so, tab URLs appear like:

http://www.domain.com/PageName/SubPageName/tabid/1408/Default.aspx

Now, I want to post some querystring variables (in this instance, to a ListX datalist), so I figured the following would work:

http://www.domain.com/PageName/SubPageName/tabid/1408/MyQuerystringVariableName/MyQueryStringVariable/Default.aspx


but, no joy. The only way it seems to want to recognize the query string variable is if I write the whole URL in the old ?tabid=123&variable=789 style.   I really, REALLY never want to see the old style again, and hope someone can tell me how I can retrieve custom query string variables out of a friendly URL.

Thanks

 
New Post
10/16/2006 1:09 PM
 
Hmm - I am not sure I understand - I just use the normal querystring methods for getting a variable out of a URL (with FU turned on)

categoryID = Int32.Parse(Request.Params["CID"]);

for example? (the string looks like this: http://localhost/DotNetNuke_2/UserGroups/PublicGroups/tabid/172/CID/0/Default.aspx)

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
10/16/2006 2:28 PM
 
I wonder if it's something specific to the ListX module.. although this doesn't seem like something that would be handled at the module level.

For example, this works:

mysite.com/Default.aspx?tabid=1408&tag=beach

But for some reason, this does not:

mysite.com/Art/Art-Search-Results/tabid/1408/tag/beach/Default.aspx
 
New Post
10/16/2006 4:22 PM
 
Did you add rules to your SiteUrls.config? If you make a mistake in here, you can cut off rewriter rule processing and you might get strange behavior.

You may want to add the HttpModule.UrlRewrite project to your solution so you can step through UrlRewriteModule and see what is happening in OnBeginRequest().

WildVoice.com Michael Levy - Are you ready to be heard? WildVoice.com
 
New Post
10/17/2006 3:00 PM
 
No theres nothing especially strange going on behind the scenes.  And Rodney is right, elsewhere on my site I can see lots of embedded custom querystring variables.

The problem seems to lie within the ListX module or how I've implemented..  it's strange because most URL rewriters i've experienced encode/decode before the application level could see it so it's strange why ListX won't pick up the friendly URL.

Back to the docs I guess..

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Extracting Querystring variables from a Extracting Querystring variables from a 'Friendly' DNN URL


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