Solved

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

Posted on 2007-04-01
6
335 Views
Last Modified: 2008-03-17
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
Comment
Question by:kcm76
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 12

Expert Comment

by:Preece
ID: 18832362
Try this:
strHTMLString = strHTMLString & "<input type=""hidden"" name=txtORDER_ ID
value=""" & Server.UrlEncode(ORDER_ ID) & """>"

Hope it helps,
Preece
0
 
LVL 12

Expert Comment

by:Preece
ID: 18832366
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
 
LVL 5

Author Comment

by:kcm76
ID: 18835744
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
 
LVL 5

Author Comment

by:kcm76
ID: 18843154
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
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 19229755
PAQed with points refunded (500)

Computer101
EE Admin
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question