Solved

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

Posted on 2007-04-01
6
333 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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Html Table looping 4 32
easy automated way to clone IIS site/pool and DATA from 2008 R2 to 2012R2 1 31
Validating Date Part2 2 27
htaccess block all countries but the US 4 39
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

733 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