Click to See Complete Forum and Search --> : Plus symbol in Querystring
Gopinath
10-01-2003, 02:49 AM
I am calling a asp file like that
xyz.asp?purpose=A++
amd move to the xyz.asp and get the purpose vale using ' Request.QueryString'
I am trying to write the 'purpose' value in xyz.asp file.
My expectation is print as 'A++'
But it print as only 'A'
How to overcome this problem
-Gopi
Bullschmidt
10-01-2003, 03:47 AM
Example URL with a querystring:
http://www.mysite.com/mydir/mypg.asp?myvar1=hey&myvar2=ho
Because a variable might contain some odd characters like spaces, it's usually a good idea to use Server.URLEncode when creating a querystring from a variable:
<a href="http://www.mysite.com/mypage?id=<%= Server.URLEncode(objRS("MyIDFldFromDB")) %>">objRS("MyIDFldFromDB")</a>
And in the page that is opened you can use Request.QueryString("id") to get the value of id.
Gopinath
10-01-2003, 06:48 AM
But i want to do it from javascript.
How can i do?
thanq
-Gopi
Ribeyed
10-01-2003, 01:58 PM
post it in the javascript forum then not the ASP forum. Bullschmidt was kind enough to help you out with an answer to your question in ASP. This was because you posted the question in the ASP which means you were wanting an ASP answer. What didn't you post in the Javascript form if you were wanting an answer in Javascript? Also why don't you read the moderators comments at the top of every form. This will help you structure your questions better as you didn't even mention that you wanted a Javascript answer and not an ASP answer until after your question had been answered. This is a complete waste of form members time and efforts and if i was Bullschmidt i would be pissed off at you and would refuse to help you again.