Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 11th, 2005, 04:42 PM
Authorized User
 
Join Date: Jan 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Incomplete data coming into text box

Hi all,
I am trying to insert data from front end(ASP) to oracle database, and it does insert fine, but when I am trying to get that data back to update them from the front end, the text does not show up complete.
Every string if it finds space all data is eliminated from over there.

e.g I entered "BIG BOSS", it enters fine. when I call in front end in the text box all I can see is "BIG" the word "BOSS" is eaten up.
Also if I do a response.write of that field in the earlier line than the text box I can see the data fine as "BIG BOSS".

I did a cstr also did not work.
I have done this thing earlier couple of times but never faced any issue, I dont know whats going on here.

advise please

Thank You


 
Old February 11th, 2005, 05:04 PM
Friend of Wrox
 
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

When u assign the value to a text box, use the following:

<input type=text name=test value="<%=rs("test")%>">

Om Prakash
 
Old February 11th, 2005, 05:11 PM
Authorized User
 
Join Date: Jan 2005
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Om_Prakasah, I already got it solved.
Was looking at something else and changing something else, my bad :-)

Thank You

 
Old February 22nd, 2005, 07:48 AM
Authorized User
 
Join Date: Dec 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try with the below code
dim vardesc
vardesc=server.htmlencode(rs("desc"))
assign value like value="<%=varDesc%>">







Similar Threads
Thread Thread Starter Forum Replies Last Post
data type not coming nishab345 VB How-To 3 June 6th, 2007 03:31 AM
Saving data from a text box Fairies2 C# 0 February 15th, 2007 04:38 AM
Incomplete Data Showing rameshjha ADO.NET 0 June 20th, 2006 06:46 AM
text box control data pzmrcd ASP.NET 1.0 and 1.1 Professional 1 January 10th, 2006 03:42 PM
MSChart : A chart that needs incomplete data point sanjib VB Components 0 February 22nd, 2005 03:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.