We have found a very freakish ‘truncate’ behavior in Classic ASP application
(that is called from within a web logic portal. This portal does the authentication).
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 " & ORDER_ ID & " -->"
strHTMLString = strHTMLString & "<input type=""hidden"" name=txtORDER_ ID
value=""" & ORDER_ ID & """>"
Now the first line correctly displays 8095 in the ViewSource.
But in the same view source I see that the above hidden variable (txtORDER_ ID)
has a value of 95 !
Similarly if we assign defalut value 80 to a textbox from a DB query, it is going blank.
In a search page if the user enters 80 in a textbox and click the save button, the value 80 is not getting retained in the textbox after submit.
This happens only if we access it with web logic portal. If we access the application directly it is working fine.
Great if someone help us...