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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLPlease please help me with querystrings!Please please help me with querystrings!
Previous
 
Next
New Post
11/24/2009 5:12 PM
 

You will have to bare with me as im a complete novice to querystrings! Let me explain my scenario.

I have a DNN page with the XML module installed. The module is on a page with a url similar to: http://www.mydomain.com/Property/tabid/103/Default.aspx

The data source is set to an external url link to an xml file. An example of this url is: http://www.dezrez.com/drapp/Search.ASP?WCI=XML&WCE=870029.

The '870029' at the end of the url is the reference to a particular property record in xml format. I have my XML transformation page specified and all looks good!

Now, what i want to do on another page on my site is provide a text url link to a property e.g 'Click here to see property number 123456'. When a user clicks this link i want the user to be redirected to my http://www.mydomain.com/Property/tabid/103/Default.aspx page but for the xml to show the appropriate property. So, in this case the XML needs to look at: http://www.dezrez.com/drapp/Search.ASP?WCI=XML&WCE=123456.

Can this be done through some kind of query string passed into the xml module on the page? What i mean is i want the XML source set to http://www.dezrez.com/drapp/Search.ASP?WCI= and then after the '=' sign should be the property reference number. Therefore, the appropriate property is queried and my transformation will output the XML in HTML.

Is this what the XML module can do? If so, how? What querystring do i need to enter and what is the link url i need to create for each of my property links e.g  'Click here to see property number 123456', 'Click here to see property number 654321'.

Please please help! This is baffling me!!!!

 
New Post
11/24/2009 6:06 PM
 

 

Now you can call the page with the XML module inside with the querystring ?PropertyID=123456, and it will grap the source http://www.dezrez.com/drapp/Search.ASP?WCI=XML&WCE=123456.

 
New Post
11/25/2009 3:57 AM
 

Stefan, you are a star!

I cannot thank you so much! Works perfectly!

Best wishes

 
New Post
9/13/2011 3:43 AM
 
Hello

I think this will work for me, but I would like some assistance with the background

I wish to go one step back with this scenario. If someone could help, that would be wonderful.

I would like to call a web service based upon user input (from a drop-down list)...

Soooooo,

I expect a user could
1. select a value for (say, WCE, as in the above example), from a drop-down list
2. This is then served up to the page as a querystring. (the page is reloaded)
3. The XML module, much the same as you have configured above, will run

The question I have is, how do I get steps 1 and 2 to run?

Do I need to create a (relatively) simple module which takes input and reserves the page, or is there a simpler, smarter, non-module-developing way to do this where I can define a drop-down input box and a "Search" button?

Thanks
Ian
 
New Post
9/15/2011 6:58 PM
 
ian symonds wrote:

I expect a user could
1. select a value for (say, WCE, as in the above example), from a drop-down list
2. This is then served up to the page as a querystring. (the page is reloaded)
Either place your "form" onto a text/html module, in module header ort directly inside your XSLT 
It goesn't have to be a get request, it would also work with a postback.
ian symonds wrote:

3. The XML module, much the same as you have configured above, will run 
For a get request, define a querystring passthrough param, or use [querystring:paramname] token (->requires xml6) inside your url .
Otherwise you can use the token [form:param] or use a pass through form post param

Stefan
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLPlease please help me with querystrings!Please please help me with querystrings!


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