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

Truncation of Hidden text box values in Classic ASP - freakish.

Hi,

We have found a very freakish ‘truncate’ behavior in Classic ASP application
(that is called from within a web logic portal).

We have an ASP variable, lngOrderId (an oracle sequence number that right
now running in 8000+) in our ASP page.

The current value of this variable (got from the session) is 8095.

In order to pass the value to the next page, we set the variable’s value to
a Hidden INPUT field and pass it to the next form.
Here is the code snippet that does this task:
Response.Write "<!— Sample debug write " & lngOrderId & " -->"
strHTMLString = strHTMLString & "<input type=""hidden"" name=strOrdID
value=""" & lngOrderId & """>"
Response.Write strHTMLString

Now the first line correctly displays 8095 in the ViewSource.
But in the same view source I see that the above hidden variable (strOrdID)
has a value of 95 !

This happens only with particular variable and does not affect the other
variables.
We are unable to reason out why this is happening and it looks very very
freakish.

One weirdness in this scenario is – the ASP application is called from
within a weblogic portal.

Could this be a bug in ASP? Any ideas?

Thanks,
Raga
Mar 30 '07 #1
3 4456
Gazing into my crystal ball I observed =?Utf-8?B?UmFnYQ==?=
<Ra**@discussions.microsoft.comwriting in
news:BA**********************************@microsof t.com:
In order to pass the value to the next page, we set the variableƒ Ts
value to a Hidden INPUT field and pass it to the next form.
Here is the code snippet that does this task:
Response.Write "<!ƒ " Sample debug write " & lngOrderId & " -->"
strHTMLString = strHTMLString & "<input type=""hidden"" name=strOrdID
value=""" & lngOrderId & """>"
Response.Write strHTMLString
What happens if you completely drop out of ASP, and do:
%>
<pre>
&lt;!-- Sample debug write <%=lngOrderId%--%gt;
&lt;input type="text" name="strOrdId" value="<%=strOrdID%>"&gt;
</pre>
My news reader is inserting some strange looking characters, and I don't
know if they might be affecting what you are trying to do. See if the
same happens when you do the above. Further, if you use type="text"
whilst testing, you can see it right away without viewing source.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Mar 31 '07 #2

"Raga" <Ra**@discussions.microsoft.comwrote in message
news:BA**********************************@microsof t.com...
Hi,

We have found a very freakish 'truncate' behavior in Classic ASP
application
(that is called from within a web logic portal).

We have an ASP variable, lngOrderId (an oracle sequence number that right
now running in 8000+) in our ASP page.

The current value of this variable (got from the session) is 8095.

In order to pass the value to the next page, we set the variable's value
to
a Hidden INPUT field and pass it to the next form.
Here is the code snippet that does this task:
Response.Write "<!- Sample debug write " & lngOrderId & " -->"
strHTMLString = strHTMLString & "<input type=""hidden"" name=strOrdID
value=""" & lngOrderId & """>"
Response.Write strHTMLString

Now the first line correctly displays 8095 in the ViewSource.
But in the same view source I see that the above hidden variable
(strOrdID)
has a value of 95 !

This happens only with particular variable and does not affect the other
variables.
We are unable to reason out why this is happening and it looks very very
freakish.

One weirdness in this scenario is - the ASP application is called from
within a weblogic portal.

Could this be a bug in ASP? Any ideas?

Thanks,
Raga
Perhaps Oracle is spitting out unwanted characters like null, carriage
return or a line feed...
maybe try IsNumeric... and the suggestion Adrienne made about changing
'hidden' to 'text' should give you some insight as well
Apr 1 '07 #3
Thanks for responses Adrienne and Marc.

We finally found the real problem. It was an issue in the Proxy code - that
was stripping off values from textboxes that were submitted.

thanks,
Raga

"Adrienne Boswell" wrote:
Gazing into my crystal ball I observed =?Utf-8?B?UmFnYQ==?=
<Ra**@discussions.microsoft.comwriting in
news:BA**********************************@microsof t.com:
In order to pass the value to the next page, we set the variableÆ’ Ts
value to a Hidden INPUT field and pass it to the next form.
Here is the code snippet that does this task:
Response.Write "<!Æ’ " Sample debug write " & lngOrderId & " -->"
strHTMLString = strHTMLString & "<input type=""hidden"" name=strOrdID
value=""" & lngOrderId & """>"
Response.Write strHTMLString

What happens if you completely drop out of ASP, and do:
%>
<pre>
<!-- Sample debug write <%=lngOrderId%--%gt;
<input type="text" name="strOrdId" value="<%=strOrdID%>">
</pre>
My news reader is inserting some strange looking characters, and I don't
know if they might be affecting what you are trying to do. See if the
same happens when you do the above. Further, if you use type="text"
whilst testing, you can see it right away without viewing source.

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Apr 7 '07 #4

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

Similar topics

9
by: Andrew Durstewitz | last post by:
Hi! I am having a really strange issue. I have a few users calling in saying they are getting an error. On further review I found this line is what is causing it... Set strLookup =...
6
by: Bonnie | last post by:
Hi: I'm hoping someone can shed some light on this issue. (I've been digging around everywhere and can't seem to find it by searching): I use the @import statement to attach an external style...
5
by: Marco Krechting | last post by:
Hi All, I have a thing that I can't get to work. I have a SELECT box of which I want the text to be copied to a hidden text. <SELECT NAME="GetUser" SIZE="1" > <option> --- Select your...
3
by: Mark Hannon | last post by:
Does "document.formName.elementName.disable" work on hidden form text elements? I have a form with some input fields that are associated with some hidden text fields and I would like to disable all...
1
by: Abdul Mohsin | last post by:
is it possible to get hidden parameter values using window.opener.document.form.parameter.value. I am getting this error " Object not found" Please help Abdul
1
by: Thomas | last post by:
How can I detect hidden text in a Word document using C#? -Thomas
5
by: Hassan Bassam | last post by:
I am having a problem. How can I get the selected text from a text editor. I am using ASP.NET and VB as language. Thanx
4
by: =?Utf-8?B?UGF1bCBSZWVk?= | last post by:
Greetings. I have an app that's been in production for 3-4 years that is hosted at an ISP. I have an aspx control on the page that uses a few hidden text fields for repositioning logic executed...
2
by: Alexio | last post by:
Sample code snippet - <td align="right">Check Amount:&nbsp;</td> (1) <td><input type="text" name="CHK_input_1" size="19"style="text-align:right" onkeyup="calcCB();"...
1
by: Amanda Semijalac | last post by:
I am making a two-page form that will be used to have a classroom of people submit their information by passing around an iPad. I have 'form1.php', where a leader types their name and a class they...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.