ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 7th, 2003, 01:04 PM
neoinbiz neoinbiz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 neoinbiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question How do I add a <BR> in a <textarea>?

How do I add a <BR> in a <textarea>?
I have a text area in a where user input comments that updates a recordset(Comments) in my Access Database field name (Comments). I want to be able to add a line break everytime a new comment is added. How is this done? I have tried the code below with no success.

Response.write Replace(rs("Comments"), vbcrlf, "<br />")

Reply With Quote
  #2  
Old August 7th, 2003, 02:49 PM
Vlince Vlince is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Canada, Quebec, Montreal
Posts: 410 Vlince User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
So you **WANT** to see the < BR > tag inside the :

<textarea><%=rs("Comments")%></textarea>

Is that correct ?


---------OR-----------


You **DON'T WANT** to see the < BR > tag inside the :

<textarea><%=rs("Comments")%></textarea>


How is the data entered IN THE FIRST PLACE ?
DOES or DOESN't have the < BR > tag when you simply make a Response.write of rs("Comments") ?

Vlince

Reply With Quote
  #3  
Old August 7th, 2003, 03:36 PM
neoinbiz neoinbiz is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 3 neoinbiz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I want the Comments textarea to show a line break when the user goes back to view there comments.
The data is entered from a textarea that updates to a field in my table named comments. The user clicks a submit button to update the comments table.

Reply With Quote
  #4  
Old August 7th, 2003, 08:03 PM
nopoints nopoints is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Windsor ON, Canada
Posts: 459 nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level)nopoints User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 13 h 44 m 22 sec
Reputation Power: 8
judging by your Replace the Comments field has carriage returns in it? in that case it should the carriage returns inside the text box. there is no need to replace them with <br>. that will just get seen as <br>.
__________________
Programmer's Corner

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > How do I add a <BR> in a <textarea>?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway