Solved

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

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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/…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now