|
 |
asp_databases thread: Inserting a memo field in a multiline textbox
Message #1 by "Warren Nash" <wjcnash@b...> on Wed, 14 Feb 2001 18:49:29
|
|
Hi
I am trying to insert the contents of an access memo field into a
multiline textbox. I don't get anything being inserted. However if I
response.write the memo field outside of the textbox it is complete. Not
sure whatI am doing wrong. I have tried saving it to a variable and then
using that for the value of the textbox.
I tried this first:
<td>Job Description:
</td>
<td><textarea name="txtJobDescription" cols="50" rows="5" <%
=rsJobRec.Fields("JobDescription").Value%>></textarea>
</td>
And then tried this:
<%strDescription=rsJobRec.Fields("JobDescription").Value
Response.Write strDescription%>
<td>Job Description:
</td>
<td><textarea name="txtJobDescription" cols="50" rows="5" <%
=strDescription%>></textarea>
</td>
Thanks in advance for your time
Warren
Message #2 by Mike Williams <mwilliams@w...> on Wed, 14 Feb 2001 14:47:06 -0600
|
|
You are close in the first example. You just need to close the textarea tag
prior to inserting the data. Do as follows
</td>
<td><textarea name="txtJobDescription" cols="50" rows="5">
<%=rsJobRec.Fields("JobDescription").Value%></textarea>
</td>
-----Original Message-----
From: Warren Nash [mailto:wjcnash@b...]
Sent: Wednesday, February 14, 2001 12:49 PM
To: ASP Databases
Subject: [asp_databases] Inserting a memo field in a multiline textbox
Hi
I am trying to insert the contents of an access memo field into a
multiline textbox. I don't get anything being inserted. However if I
response.write the memo field outside of the textbox it is complete. Not
sure whatI am doing wrong. I have tried saving it to a variable and then
using that for the value of the textbox.
I tried this first:
<td>Job Description:
</td>
<td><textarea name="txtJobDescription" cols="50" rows="5" <%
=rsJobRec.Fields("JobDescription").Value%>></textarea>
</td>
And then tried this:
<%strDescription=rsJobRec.Fields("JobDescription").Value
Response.Write strDescription%>
<td>Job Description:
</td>
<td><textarea name="txtJobDescription" cols="50" rows="5" <%
=strDescription%>></textarea>
</td>
Thanks in advance for your time
Warren
-
Message #3 by Ben Greenhouse <b.greenhouse@u...> on Wed, 14 Feb 2001 15:48:01 -0500
|
|
How about
"<td><textarea name="txtJobDescription" cols="50"
rows="5"><%=rsJobRec.Fields("JobDescription")%></textarea>
</td>"
?
try that.
Ben
Warren Nash wrote:
> Hi
> I am trying to insert the contents of an access memo field into a
> multiline textbox. I don't get anything being inserted. However if I
> response.write the memo field outside of the textbox it is complete. Not
> sure whatI am doing wrong. I have tried saving it to a variable and then
> using that for the value of the textbox.
>
> I tried this first:
> <td>Job Description:
> </td>
> <td><textarea name="txtJobDescription" cols="50" rows="5" <%
> =rsJobRec.Fields("JobDescription").Value%>></textarea>
> </td>
>
> And then tried this:
> <%strDescription=rsJobRec.Fields("JobDescription").Value
> Response.Write strDescription%>
>
> <td>Job Description:
> </td>
> <td><textarea name="txtJobDescription" cols="50" rows="5" <%
> =strDescription%>></textarea>
> </td>
>
> Thanks in advance for your time
> Warren
> -
Message #4 by thomas@i... on Wed, 14 Feb 2001 22:07:46 +0100
|
|
What you need to do is write like this:
<td><textarea name="txtJobDescription" cols="50" rows="5"><%
=rsJobRec.Fields("JobDescription").Value%></textarea>
</td>
When it is a textarea the value is written in the box itself
hope its what you're looking for
:)
Hi
I am trying to insert the contents of an access memo field into a
multiline textbox. I don't get anything being inserted. However if I
response.write the memo field outside of the textbox it is complete. Not
sure whatI am doing wrong. I have tried saving it to a variable and then
using that for the value of the textbox.
I tried this first:
<td>Job Description:
</td>
<td><textarea name="txtJobDescription" cols="50" rows="5" <%
=rsJobRec.Fields("JobDescription").Value%>></textarea>
</td>
And then tried this:
<%strDescription=rsJobRec.Fields("JobDescription").Value
Response.Write strDescription%>
<td>Job Description:
</td>
<td><textarea name="txtJobDescription" cols="50" rows="5" <%
=strDescription%>></textarea>
</td>
Thanks in advance for your time
Warren
Message #5 by "Greg Covey" <gecovey@s...> on Wed, 14 Feb 2001 13:12:19 -0800
|
|
Try this:
<textarea name="txtJobDescription" cols="50" rows="5">
<%=strDescription%></textarea>
That should work!
hth,
Greg
> -----Original Message-----
> From: Warren Nash [mailto:wjcnash@b...]
> Sent: Wednesday, February 14, 2001 6:49 PM
> To: ASP Databases
> Subject: [asp_databases] Inserting a memo field in a multiline textbox
>
>
> Hi
> I am trying to insert the contents of an access memo field into a
> multiline textbox. I don't get anything being inserted. However if I
> response.write the memo field outside of the textbox it is complete. Not
> sure whatI am doing wrong. I have tried saving it to a variable and then
> using that for the value of the textbox.
>
> I tried this first:
> <td>Job Description:
> </td>
> <td><textarea name="txtJobDescription" cols="50" rows="5" <%
> =rsJobRec.Fields("JobDescription").Value%>></textarea>
> </td>
>
> And then tried this:
> <%strDescription=rsJobRec.Fields("JobDescription").Value
> Response.Write strDescription%>
>
> <td>Job Description:
> </td>
> <td><textarea name="txtJobDescription" cols="50" rows="5" <%
> =strDescription%>></textarea>
> </td>
>
> Thanks in advance for your time
> Warren
Message #6 by Lizawati Bakri <LIZA_B@e...> on Thu, 15 Feb 2001 08:34:49 +0800
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C096E7.1F70C0CE
Content-Type: text/plain;
charset="iso-8859-1"
<textarea rows="12" name="S1" wrap="virtual" value="Dim sText
sText = Replace(sText, vbCRLF, " cols="61" <BR>
<%=rsnotice("NoticeBody")%></textarea>
-----Original Message-----
From: Warren Nash [mailto:wjcnash@b...]
Sent: Thursday, February 15, 2001 2:49 AM
To: ASP Databases
Subject: [asp_databases] Inserting a memo field in a multiline textbox
Hi
I am trying to insert the contents of an access memo field into a
multiline textbox. I don't get anything being inserted. However if I
response.write the memo field outside of the textbox it is complete. Not
sure whatI am doing wrong. I have tried saving it to a variable and then
using that for the value of the textbox.
I tried this first:
<td>Job Description:
</td>
<td><textarea name="txtJobDescription" cols="50" rows="5" <%
=rsJobRec.Fields("JobDescription").Value%>></textarea>
</td>
And then tried this:
<%strDescription=rsJobRec.Fields("JobDescription").Value
Response.Write strDescription%>
<td>Job Description:
</td>
<td><textarea name="txtJobDescription" cols="50" rows="5" <%
=strDescription%>></textarea>
</td>
Thanks in advance for your time
Warren
---
FREE WEB DEVELOPMENT CODE, CONTENT, AND INSIGHTS
IN YOUR INBOX!
Get the latest and best HTML, XML, and JavaScript tips, tools, and
developments from the experts. Sign up for one or more of EarthWeb's
FREE IT newsletters at http://www.earthweb.com today!
$subst('Email.Unsub')
Message #7 by "Wally Burfine" <oopconsultant@h...> on Thu, 15 Feb 2001 14:41:33 -0000
|
|
The text area does not use the value paroperty. Do this:
<textarea name="txtJobDescription" cols="50" rows="5"><%
=rsJobRec("JobDescription")%></textarea>
>From: "Warren Nash" <wjcnash@b...>
>Reply-To: "ASP Databases" <asp_databases@p...>
>To: "ASP Databases" <asp_databases@p...>
>Subject: [asp_databases] Inserting a memo field in a multiline textbox
>Date: Wed, 14 Feb 2001 18:49:29
>
>Hi
>I am trying to insert the contents of an access memo field into a
>multiline textbox. I don't get anything being inserted. However if I
>response.write the memo field outside of the textbox it is complete. Not
>sure whatI am doing wrong. I have tried saving it to a variable and then
>using that for the value of the textbox.
>
>I tried this first:
><td>Job Description:
></td>
><td><textarea name="txtJobDescription" cols="50" rows="5" <%
>=rsJobRec.Fields("JobDescription").Value%>></textarea>
></td>
>
>And then tried this:
><%strDescription=rsJobRec.Fields("JobDescription").Value
>Response.Write strDescription%>
>
><td>Job Description:
></td>
><td><textarea name="txtJobDescription" cols="50" rows="5" <%
>=strDescription%>></textarea>
></td>
>
>Thanks in advance for your time
>Warren
>
|
|
 |