HighDots Forums  

Text Areas

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Text Areas in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ConorS webforumsuser@macromedia.com
 
Posts: n/a

Default Text Areas - 07-10-2003 , 05:02 AM






Using Dreamweaver, asp VB.

I'm creating a form that goes to a database. When outputting from the database, what typed into the text area looks nothing like the input. I think it has something to do with the format.

How to i make text areas generate html? As in <Br> break lines. etc...





Reply With Quote
  #2  
Old   
Jamesy
 
Posts: n/a

Default Re: Text Areas - 07-10-2003 , 06:00 AM






go to robgt.com and look for the "keep memo formatting" behaviour

James


"ConorS" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Using Dreamweaver, asp VB.

I'm creating a form that goes to a database. When outputting from the
database, what typed into the text area looks nothing like the input. I
think it has something to do with the format.
Quote:
How to i make text areas generate html? As in <Br> break lines. etc...







Reply With Quote
  #3  
Old   
Jordan Marton
 
Posts: n/a

Default Re: Text Areas - 07-10-2003 , 06:17 AM



Well, roughly...

When you submit the text area to a memo field in Access it DOES store the
breaks, but not as the html code of <br>. If you want to display the text in
another textbox, it should work, but if you want it in a paragraph, use this
line to conver the returns to <br>:
<%=Replace(rs("yourfield"),vbcrlf,"<br>")%>

That should do it.

"ConorS" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Using Dreamweaver, asp VB.

I'm creating a form that goes to a database. When outputting from the
database, what typed into the text area looks nothing like the input. I
think it has something to do with the format.
Quote:
How to i make text areas generate html? As in <Br> break lines. etc...







Reply With Quote
  #4  
Old   
Ron
 
Posts: n/a

Default Re: Text Areas - 07-10-2003 , 12:37 PM



Quote:
that code is fine, but possibly the user might want to wrap that in and
(if.. then) statement to make sure there are line breaks in the document,
otherwise it will throw and error.
It just won't do any replacing, leaving the original value intact.

--
Ron




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.