Re: Display multiple lines

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: JStrauss (subs_at_strausselec.com)
Date: 07/21/04


Date: Wed, 21 Jul 2004 17:05:21 -0600

Aaron,
Thanks for your comments. The data is collected in a ASP form "textarea"
field (with wrap=physical) and stored in a vbscript variable when the form
is submitted. The data is then displayed in an HTML form. There is no
database involved. When the data is input into the first form, the lines
wrap automatically in the textarea box. I have not seen any carriage return
or line feed characters in the text (but I may be missing them), and have
also tries several replace statements to change vbcrlf and &nbsp to html
acceptable characters. If I manually put a hard return in the data entry
form, the second form formats the display correctly, but that method is less
than friendly.

Here are a few snippets...
Data collection process:
<TABLE BORDER=0>
<tr><td>Work Requested / Problem Condition</td><td><TEXTAREA NAME="WorkReq"
COLS=40 ROWS=3 WRAP=Physical></TEXTAREA></td></tr>
<tr><td>Services Performed</td><td><TEXTAREA NAME="ServicePerf" COLS=40
ROWS=6 WRAP=Physical></TEXTAREA></td></tr>
</TABLE>

Data display process:
<html>
<style>
.info
{
 width: 300px;
}
</style>
...
...
Work Requested / Problem Condition<br>
<span class='info'><%= Replace(strWorkReq,vbCrlf,"<br>") %></span>
<br>

Thanks for looking at this. I appreciate the help.

Joe

"Aaron [SQL Server MVP]" <ten.xoc@dnartreb.noraa> wrote in message
news:%23cEX1PzbEHA.2408@tk2msftngp13.phx.gbl...
> Then you're going to have to show us exactly what is going into the
> database, so we know what characters are assumed to be carriage returns
but
> probably aren't.
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>
>
>
>
> "JStrauss" <subs@strausselec.com> wrote in message
> news:eFjedLzbEHA.2816@TK2MSFTNGP11.phx.gbl...
> > No change from this tip either.
> >
> > Joe
>
>



Relevant Pages

  • Re: WANTED: Volunteer to Scan Old Programs
    ... the group with binary and HTML junk you have passed the limit. ... to be able to use the "Box drawing" characters that are present on ... By the way, Axel, when searching how to display the "extended" ... computer or program using the "UTF-8" encoding. ...
    (comp.os.cpm)
  • Re: How to display styleed text in a textaea or... ???
    ... But somehow the HTML tags in textarea look messy... ... Since text in 'textarea' can not display HTML effects(maybe I was ... WYSIWYG editor of my own. ...
    (comp.lang.javascript)
  • Re: formating text retrieved from a db
    ... That's the way plain text is displayed within HTML. ... If you were to display a phrase in your browser in simple HTML, ... replaces all new line characters with line break characters ...
    (comp.lang.php)
  • Re: Is there a character limit on bound controls?
    ... When you look at the generated HTML, does it still have just 225 characters? ... However, on the page that needs to display the text, the text is ... The truncation happens regardless of whether there ...
    (microsoft.public.dotnet.framework.aspnet)
  • IE Doesnt Display Romanian Page!
    ... We have a client that has a page with romanian characters which IE ... doesn't want to display. ... HTML page which is been served. ...
    (comp.lang.perl.misc)