473,320 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Processing querystring ...

Raj
<html>
<body>
<script language="javascript">
locatin.href="splchars.asp?filenames=funnel slab beam bldg #15.txt;slab @ el
246.50 # 15.txt"
</script>
</body>
</html>

spchars.asp
-----------
<%
Response.write Server.URLEncode(Request("filenames"))
Response.write Server.URLPathEncode(Request("filenames"))
Response.write Server.HTMLEncode(Request("filenames"))
%>

None of the above methods allow me to read query string as same as it was
sent to the page ( i.e funnel slab beam bldg #15.txt;slab @ el 246.50 #
15.txt )

Any workarounds?
Aug 5 '06 #1
2 1131
"Raj" <ra*@track-mate.netwrote in message
news:#p**************@TK2MSFTNGP06.phx.gbl...
<html>
<body>
<script language="javascript">
locatin.href="splchars.asp?filenames=funnel slab beam bldg #15.txt;slab @
el
246.50 # 15.txt"
</script>
</body>
</html>

spchars.asp
-----------
<%
Response.write Server.URLEncode(Request("filenames"))
Response.write Server.URLPathEncode(Request("filenames"))
Response.write Server.HTMLEncode(Request("filenames"))
%>

None of the above methods allow me to read query string as same as it was
sent to the page ( i.e funnel slab beam bldg #15.txt;slab @ el 246.50 #
15.txt )

Any workarounds?
It's "location.href=" not "locatin.href=".

Try:

<html>
<body>
<script type="text/javascript">
var qs = "funnel slab beam bldg #15.txt;slab @ el 246.50 # 15.txt";
location.href="qs.asp?filenames=" + escape(qs);
</script>
</body>
</html>

<%
Response.Write Request.QueryString("filenames")
%>
Aug 5 '06 #2
"McKirahan" <Ne**@McKirahan.comwrote in message
news:Ms******************************@comcast.com. ..

[snip]
location.href="qs.asp?filenames=" + escape(qs);
[snip]

Sorry, I changed the ASP name for my testing -- it should be:

location.href="splchars.asp?filenames=" + escape(qs);
Aug 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string:...
0
by: Martin Schmid | last post by:
Hi... I have this simple Page_Load that works as expected, however, the output in the browser is such that when one tries to right-click to save the image, it is grabbing the aspx instead of an...
1
by: Martin Schmid | last post by:
Hi... I have this simple Page_Load that works as expected, however, the output in the browser is such that when one tries to right-click to save the image, it is grabbing the aspx instead of an...
4
by: Raterus | last post by:
Howdy, Simple question, but I can't figure out how to do it. I have a a page which is called initially with a querystring. After I get the querystring values, I don't need the querystring to...
12
by: Alex | last post by:
I have a question about determining if one QueryString keys exists. The idea is, if this key exists, than its presence is enough to indicate that its value is true. For example ... ...
2
by: L-E Eriksson | last post by:
Hello! I am working on integrating two systems, one internal and one external. I have a web site. One of my webpages are called from the external systems with a http get. In the querystring i...
3
by: pbd22 | last post by:
Hi. I need some help with structuring my query strings. I have a form with a search bar and some links. Each link is a search type (such as "community"). The HREF for the link's anchor looks...
2
by: Matthew Loraditch | last post by:
I have several different variations of the same form. Some include an asp Radio Button list option called rb_monthly. If that option exists I need to do some extra processing on the form. The...
3
by: pingsheng | last post by:
Dear all, I have a form with dynamically created input fields. These fields go to next page for submitting into SQL database. The thing is all fields are the same but 4 fields. So each record...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.