473,395 Members | 1,335 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,395 software developers and data experts.

Unwanted Comma

PW

I'm testing the output of variables passed from my 1st ASP to my 2nd ASP.

This is the code ...

<%
response.write "C-" & request.querystring("myCounter")
response.write "<br>"
response.write "1-" & request.querystring("txtBCQty1")
response.write "<br>"
response.write "2-" & request.querystring("txtBCQty2")
response.write "<br>"
response.write "3-" & request.querystring("txtBCQty3")
response.write "<br>"
response.write "4-" & request.querystring("txtBCQty4")
response.write "<br>"
response.end
%>

This is the output ...

C-4
1-32,
2-45
3-67
4-99
Why is there a comma after the value "32" ???


Jul 19 '05 #1
3 1398
Because you have two form elements on the previous page named txtBCQty1?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"PW" <pw*@NObigSPAMpond.net.au> wrote in message
news:OK**************@TK2MSFTNGP09.phx.gbl...

I'm testing the output of variables passed from my 1st ASP to my 2nd ASP.

This is the code ...

<%
response.write "C-" & request.querystring("myCounter")
response.write "<br>"
response.write "1-" & request.querystring("txtBCQty1")
response.write "<br>"
response.write "2-" & request.querystring("txtBCQty2")
response.write "<br>"
response.write "3-" & request.querystring("txtBCQty3")
response.write "<br>"
response.write "4-" & request.querystring("txtBCQty4")
response.write "<br>"
response.end
%>

This is the output ...

C-4
1-32,
2-45
3-67
4-99
Why is there a comma after the value "32" ???

Jul 19 '05 #2
PW

"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
Because you have two form elements on the previous page named txtBCQty1?

DOH!!! I had hard-coded a second one for testing.

Thanks :-)

Jul 19 '05 #3
"PW" <pw*@NObigSPAMpond.net.au> wrote in message news:<OK**************@TK2MSFTNGP09.phx.gbl>...
I'm testing the output of variables passed from my 1st ASP to my 2nd ASP.

This is the code ...

<%
response.write "C-" & request.querystring("myCounter")
response.write "<br>"
response.write "1-" & request.querystring("txtBCQty1")
response.write "<br>"
response.write "2-" & request.querystring("txtBCQty2")
response.write "<br>"
response.write "3-" & request.querystring("txtBCQty3")
response.write "<br>"
response.write "4-" & request.querystring("txtBCQty4")
response.write "<br>"
response.end
%>

This is the output ...

C-4
1-32,
2-45
3-67
4-99
Why is there a comma after the value "32" ???


Because your querystring must say something like

?mycounter=4&txtBCQty1=32,&txtBCQty2=45

etc....
Jul 19 '05 #4

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

Similar topics

27
by: Alberto Vera | last post by:
Hello: I have the next structure: How Can I make it using Python? How Can I update the value of 6?
5
by: Morris | last post by:
This may not be possible on the server side, so apologies if this is the wrong group for this post. My form consists of an unknown number of pairs of text boxes. They are named textbox_a and...
11
by: Shawn Odekirk | last post by:
Some code I have inherited contains a macro like the following: #define setState(state, newstate) \ (state >= newstate) ? \ (fprintf(stderr, "Illegal...
21
by: siliconwafer | last post by:
Hi, In case of following expression: c = a && --b; if a is 0,b is not evaluated and c directly becomes 0. Does this mean that && operator is given a higher precedence over '--'operator? as...
4
by: David Beck | last post by:
I donwnload some files for processing every day that have unwanted characters in them. In VB6 I use the InputB to read in the text and the StrConv. vLinesFromFile =...
9
by: Wayne | last post by:
I have the following string: "smith", "Joe", "West Palm Beach, Fl." I need to split this string based on the commas, but as you see the city state contains a comma. String.split will spilt the...
16
by: lovecreatesbeauty | last post by:
/* When should we worry about the unwanted chars in input stream? Can we predicate this kind of behavior and prevent it before debugging and testing? What's the guideline for dealing with it? ...
4
by: vvenk | last post by:
Hello: I have a string, "Testing_!@#$%^&*()". It may have single and double quotations as well. I would like to strip all chararcters others than a-z, A-Z, 0-9 and the comma. I came across...
15
by: Lighter | last post by:
In 5.3.3.4 of the standard, the standard provides that "The lvalue-to- rvalue(4.1), array-to-pointer(4.2),and function-to-pointer(4.3) standard conversions are not applied to the operand of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.