Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 342
  • Last Modified:

ASP - VALUE 80 is truncated when coming from weblogic portal.

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 & """>"
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 (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...
0
Chandramouli k
Asked:
Chandramouli k
  • 2
  • 2
1 Solution
 
PreeceCommented:
Try this:
strHTMLString = strHTMLString & "<input type=""hidden"" name=txtORDER_ ID
value=""" & Server.UrlEncode(ORDER_ ID) & """>"

Hope it helps,
Preece
0
 
PreeceCommented:
Oops, that should have been Server.HTMLEncode:

strHTMLString = strHTMLString & "<input type=""hidden"" name=txtORDER_ ID
value=""" & Server.HTMLEncode(ORDER_ ID) & """>"

Hope it helps,
Preece
0
 
Chandramouli kArchitectAuthor Commented:
No. This has all been tried out. Please note that if we give response.write <!-- ORDER_ID --> it is showing the value as 80 but when this is assigned to text filed like hidden or text it is getting truncated. Also this happens only when we log from weblogic portal.

This is not the case with textarea. it is working fine there.
0
 
Chandramouli kArchitectAuthor Commented:
There was some issue in the portal side and they have fixed it.
Issue is to do with portnumber.
Request to delete this question pls
0
 
Computer101Commented:
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now