Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2007-04-01
6
Medium Priority
?
340 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

618 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