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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...HOW TO: Friendly UrlHOW TO: Friendly Url
Previous
 
Next
New Post
8/30/2007 4:35 PM
 

Does anyone have any quick snippet examples of how to add querystring keys/values to the friendly url and then in turn retrieve them?


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
8/31/2007 12:42 AM
 
Hi,

Not sure if this is what you're looking for...

Assuming you know the tab id then you can use something like:

Dim navURL as String = NavigateUrl(myTabId, "", "qs_parm1=qs_value1", "qs_parm2=qs_value2")

navURL is now a formatted URL complete with querystrings and it's formatted according to the host friendly url settings.

There are a bunch of overloads for the NavigateUrl() routine so browsing the source for examples may help as well.

Hope this helps!


Shawn
 
New Post
8/31/2007 8:08 AM
 

Yes.  I had already been to the source.  However, I do not see any methods that allow you to easily extract the querystring values that we insert into the url.  I just cannot imagine that such a method doesn't exist though.  Do you have an example of retrieving querystring values?


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
8/31/2007 8:50 AM
 

You use the following code to retreive values from the querystring :

Request.Querystring("yourparameter")

This returns the value of the querystringparameter as a string

 
New Post
8/31/2007 9:20 AM
 
Hi,

Do you mean in the receiving module that's call with the friendly URL?

Isn't it Request.QueryString(varName) ?

I've not followed the code but think the URLRewrite module breaks down the URL and rebuilds the query string object. If you're trying to work with the RawUrl(), then the UrlRewriteModule.vb in the HttpModule.UrlRewrite is the place to research.

Hope this helps!


Shawn


 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...HOW TO: Friendly UrlHOW TO: Friendly 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