Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using restrocted characters in text box

Status
Not open for further replies.

Charlix

Programmer
Nov 19, 2002
85
US
I have a multi-line text box on an asp page that I want the user to enter data.

<Text Area Name= "Comments" Rows = 10 Cols = 30 > </Text Area>

The data is saved to a Microsoft Access 2000 database in a 'memo' data type field.

The information stores properly in the database (i.e., if I examine the database, the information is there). However, it will not display on the asp page if there is a carriage-return in the data. If there is no carriage-return everything is OK.

What can I do to fix this problem?

Charlix
 
<Text Area Name= "Comments" Rows = 10 Cols = 30 > </Text Area>

first of all ... textarea doesn't have a space in it
secondly you're not responsing out the data into it :

<TextArea Name= "Comments" Rows = 10 Cols = 30><%=Server.HTMLEncode(RSobj("Memofield"))%> </TextArea>

[thumbsup2]DreX
aKa - Robert
 
Sorry, but the suggestion to use <%=Server.HTMLEncode(RSobj("memofield))%> did not work. I get the error message

Type Mismatch RSobj

Charlix
 
because RS Obj is sample code, you need to change this out for whatever value you're sing to populate the form, the pagee isn't going to pull a miss cleo and know what to put inside the text area from your database unless you tell it.
:)

[thumbsup2]DreX
aKa - Robert
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top