943,929 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 4917
  • ASP RSS
Jul 17th, 2004
0

Requesting Querystring

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
thegodson_1234 is offline Offline
1 posts
since Jul 2004
Jul 18th, 2004
0

Re: Requesting Querystring

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!
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
Jul 20th, 2004
0

Re: Requesting Querystring

You should use response.write Server.URLEncode(URLQuerystring) to produce the URL querystring....

This will encode the + sign in a way that is retreivable.
Reputation Points: 10
Solved Threads: 1
Light Poster
RobUK is offline Offline
32 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: Excel to Web in Real Time?
Next Thread in ASP Forum Timeline: Please check and provide solution for my code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC