String truncates all but 1st word in Form Input type text box 
Author Message
 String truncates all but 1st word in Form Input type text box

My asp form is experiencing a strange behavior where several of its input
text fields, when assigned values using an ADO recordset only dislay the
first word in the assigned string.

The entire string is still actually assigned to the field's value property.

I am able to fetch, reassign and display it using an "onclick event."   That
is, the entire string is reassigned and fully displayed in another input
text box.

What is causing this to happen and how can I fix it?

Any help would be greatly appreciated!

Mark



Sun, 08 Sep 2002 03:00:00 GMT  
 String truncates all but 1st word in Form Input type text box
When you buld the HTML and the value attribute make sure to enclose the value in either single or
double quotes...

<input ... value="<% =rs("fieldname") %>"
<input ... value='<% =rs("fieldname") %>'

--
Michael Harris
MVP Scripting


My asp form is experiencing a strange behavior where several of its input
text fields, when assigned values using an ADO recordset only dislay the
first word in the assigned string.

The entire string is still actually assigned to the field's value property.

I am able to fetch, reassign and display it using an "onclick event."   That
is, the entire string is reassigned and fully displayed in another input
text box.

What is causing this to happen and how can I fix it?

Any help would be greatly appreciated!

Mark



Sun, 08 Sep 2002 03:00:00 GMT  
 String truncates all but 1st word in Form Input type text box
This worked perfectly.

Thanks Michael.

Mark

Quote:

>When you buld the HTML and the value attribute make sure to enclose the

value in either single or
Quote:
>double quotes...

><input ... value="<% =rs("fieldname") %>"
><input ... value='<% =rs("fieldname") %>'

>--
>Michael Harris
>MVP Scripting



>My asp form is experiencing a strange behavior where several of its input
>text fields, when assigned values using an ADO recordset only dislay the
>first word in the assigned string.

>The entire string is still actually assigned to the field's value property.

>I am able to fetch, reassign and display it using an "onclick event."
That
>is, the entire string is reassigned and fully displayed in another input
>text box.

>What is causing this to happen and how can I fix it?

>Any help would be greatly appreciated!

>Mark




Tue, 10 Sep 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Displaying Records in List Box as Data is input to Text Box on Form

2. text box input type limitation

3. How to check for correct data type input into text box or other controls

4. Input Mask for HTML Form text Boxes???

5. Word 2K Add text to bookmarks using Input Box

6. Need to truncate textfile info being loaded into Rich Text Boxoading Text Box infppo to RichTeboVB

7. Truncating rich text box text & keeping formatting

8. Created Form in Word - Irregular movement of combo boxes, text boxes on scrolling

9. form input field initial value truncate after space

10. Exposing Word in browser form text boxes

11. Text String is being truncated to 4K -- HELP !!!

12. using VB text boxes data but not text boxes in word 2000

 

 
Powered by phpBB® Forum Software