|
 |
asptoday_discuss thread: Spaces In Query String ??????
Message #1 by howard@c... on Wed, 19 Dec 2001 19:22:27
|
|
I'm trying to pass several character strings via query string...
Ex.
lcHouse = "1313"
lcStreet ="MockingBird Lane South"
SomeFile.asp?House=lcHouse&Street=lcStreet
When I view my query string...I have the correct value for...
Request.QueryString("House") gives me "1313"
Request.QuertString("Street") gives me only "Mockingbird" without "Lane
South"
Is there any easy way around this...(I know I could go to hidden fields,
but was trying to do with Query String)...
Thanks in advance...
Howard
Message #2 by "Bill Reynolds" <breynolds@g...> on Wed, 19 Dec 2001 14:19:14 -0500
|
|
Hi Howard!
You need to use Server.URLEncode("MockingBird Lane South") or replace
the spaces with %20 - Asp can't parse spaces.
Thanks,
Bill Reynolds
Web Application Developer
Graphic Enterprises, Inc.
3874 Highland Park NW
North Canton, OH 44720.8080
xxx.xxx.xxxx x204 (p)
xxx.xxx.xxxx (f)
-----Original Message-----
From: howard@c... [mailto:howard@c...]
Sent: Wednesday, December 19, 2001 2:22 PM
To: ASPToday Discuss
Subject: [asptoday_discuss] Spaces In Query String ??????
I'm trying to pass several character strings via query string...
Ex.
lcHouse =3D "1313"
lcStreet =3D"MockingBird Lane South"
SomeFile.asp?House=3DlcHouse&Street=3DlcStreet
When I view my query string...I have the correct value for...
Request.QueryString("House") gives me "1313"
Request.QuertString("Street") gives me only "Mockingbird" without "Lane
South"
Is there any easy way around this...(I know I could go to hidden fields,
but was trying to do with Query String)...
Thanks in advance...
Howard
Message #3 by "Greg Jennings" <greg.jennings@t...> on Wed, 19 Dec 2001 19:28:17
|
|
Try the following text in the URL:  
> I'm trying to pass several character strings via query string...
>
> Ex.
>
> lcHouse = "1313"
> lcStreet ="MockingBird Lane South"
>
> SomeFile.asp?House=lcHouse&Street=lcStreet
>
> When I view my query string...I have the correct value for...
>
> Request.QueryString("House") gives me "1313"
> Request.QuertString("Street") gives me only "Mockingbird" without "Lane
> South"
>
> Is there any easy way around this...(I know I could go to hidden fields,
> but was trying to do with Query String)...
>
> Thanks in advance...
>
> Howard
Message #4 by howard@c... on Wed, 19 Dec 2001 19:38:53
|
|
I guess then I just do Request.QueryString and I get proper string...???...
lcAddress = "My text Here"
Response.Write "somefile.asp?Address=" & ServerUrlEncode(lcAddress)
and then to decode...
Request.QueryString("Address") would give "My text here"
Correct...???...
Thanks in advance...
Howard
|
|
 |