Requesting Querystring

Reply

Join Date: Jul 2004
Posts: 1
Reputation: thegodson_1234 is an unknown quantity at this point 
Solved Threads: 0
thegodson_1234 thegodson_1234 is offline Offline
Newbie Poster

Requesting Querystring

 
0
  #1
Jul 17th, 2004
I am requesting a querystring from another page.
This field in access db is a text field.
The field is a field containing URL Links.

HOWEVER,

If the field that Im requesting contains the character "+" anywhere in it. When calling the querystring as a value. It displays everything except the "+" character

FOR EXAMPLE:

The field which Im calling would contain something like this
www.msn.com/help+me.mp3

HOWEVER:

When calling the querystring it displays this:
www.msn.com/help me.mp3


WHY? Please help! Thank-You
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: Requesting Querystring

 
0
  #2
Jul 18th, 2004
Has to do with the fact that QueryString encoding prevents it. See here. Which is more removing it, then preventing it.

Any for one of the reasons it should be obvious. QueryString retrieves a string and a means of concatenating two strings together is with a + or & depending on the language.

Sorry this is a crude explaination, but that is the best I had at the end of a long hard day.

Hope this helps!
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 32
Reputation: RobUK is an unknown quantity at this point 
Solved Threads: 1
RobUK RobUK is offline Offline
Light Poster

Re: Requesting Querystring

 
0
  #3
Jul 20th, 2004
You should use response.write Server.URLEncode(URLQuerystring) to produce the URL querystring....

This will encode the + sign in a way that is retreivable.
Rob - DMOZ Editor
Web Design Forums - Free website critiques. Web design + SEO Advice
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC