CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Problem with URL Parameter string

Print topic Send  topic

Author Message
Meester

Posts: 4
Posted: 08/02/2005, 7:00 AM

I am building a parameter string

xdata="LOADNUM=1111&SEQNUM=2222&DCNUM=3333&NUMLINES=4444"

or xdata ="LOADNUM="&load&"&SEQNUM="&seq

but my code returns only LOADNUM=1111 when I look at the value of xdata

it's like stopping when it reaches the first & within the text string!!

Note: this worked earlier, and within a few hours I tried again and started getting the missing parameter error.



View profile  Send private message
smalloy

Posts: 107
Posted: 08/02/2005, 9:05 AM

Check the value of your variable "load", its either empty or has a leading space. A good way to do this is:

Response.Write "this is the Value of load: " & load  
Response.End

If its a string then you may want to use

xdata ="LOADNUM="& Trim(load) &"&SEQNUM="&seq


I hope this helps!

_________________
Anything can be done, just give me time and money.
View profile  Send private message
Meester

Posts: 4
Posted: 08/02/2005, 1:45 PM

:-/
I have tested the variables, both have values.
That is why I simply build the string without variables.

xdata="LOADNUM=1111&SEQNUM=2222&DCNUM=3333&NUMLINES=4444"

Response.Write "this is the value of xdata: " & xdata
Response.End

this is the value of xdata:LOADNUM=1111

if I remove the ampersands "&"

xdata="LOADNUM=1111SEQNUM=2222DCNUM=3333&NUMLINES=4444"

Response.Write "this is the value of xdata: " & xdata
Response.End

this is the value of xdata:LOADNUM=1111SEQNUM=2222DCNUM=3333
View profile  Send private message
Meester

Posts: 4
Posted: 08/02/2005, 1:49 PM

What I don't understand?
1. this stringbuilding with the "¶m2" was working a few hours earlier, and all of a sudden stopped working.
2. I have re-installed IIS even to try and resolve this.
3. funny thing is I have a backup of the asp page, when I run the backup it generates the right value. When I publish the page through CCS, it does not work anymore. I compared the old.asp and the new.asp in ultra-edit (matching char by char) and 100% match, no differences.
4. But the old.asp works, and the new.asp does not!
View profile  Send private message
peterr


Posts: 5971
Posted: 08/02/2005, 5:05 PM

I cannot explain this, but possibly this is related to encoding. Try changing the File Encoding in CCS project settings. Also check the Charset in the HTML of that page.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Meester

Posts: 4
Posted: 08/05/2005, 5:47 AM

:*)
Well, i don't know how or why? but somehow the error is intermittent - then it is there, then it is gone.

For now, I have uninstalled IIS, MSDTC, MDAC, XP SP2

and then reinstalled it all.

then the code worked, but after a while it stopped again.

We can close this request for now! Thanks
View profile  Send private message
donb

Posts: 52
Posted: 08/05/2005, 6:21 AM

You don't say where the variable 'load' comes from, but if it somehow has the character Chr(0) in it, the string will truncate.
_________________
http://www.gotodon.com/ccbth
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.