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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

textarea doesn't show contents of field. 1

Status
Not open for further replies.

grnzbra

Programmer
Mar 12, 2002
1,273
US
I have the following textarea code


<textarea name='txtModReason' value='<%= rsZipcodes "ModificationReason") %>' cols='35' rows='2'></textarea>

When an entry is made in this field and saved, the entry is does show up in the underlying field in the table. However, when the form is reopened to the same record, the textarea is blank. Can a textarea display data or is it an input only type of thing?

 
textareas don't use value, in order to see what textarea has in it, put your server side variable between the tags.



[monkey][snake] <.
 
Put this between the <textarea> tags:
Code:
<textarea><%=rsZipcodes("ModificationReason")%></textarea>

[monkey][snake] <.
 
I thought that's what you meant. I tried it and got:

<font face="Arial" size=2>
<p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error '800a01c2'</font>
<p>
<font face="Arial" size=2>Wrong number of arguments or invalid property assignment: 'rsZipcodes'</font>
<p>
<font face="Arial" size=2>/zipcode_editTest.asp</font><font face="Arial" size=2>, line 318</font>

in the textarea.

I also tried it without the "value" attribute and got the same thing. Just for jollies, I wrote Ho Ho Ho between the tags and that came out fine.

By the way, what should I be using instead of "value"? That's what was there when I got this project. I'm new to this. All my experience has been with VBA in MSAccess.
 
OOps Bit by a typo. I forgot the = sign after the opening of the script tag.
 
That = can be a mindscrew sometimes <%[!]=[/!]. I've left it out accidentally a few times.

[monkey][snake] <.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top