Ask a Question related to ASP, Design and Development.
-
Gaze #1
text format
Hi,
I use <textarea> input more than one paragraph to the database, whose field
type is set to "text". Then I retrieve it to display in <textarea>, which is
OK, paragraph by paragraph, but not in the other tabs because of no <P> or
<br> between each paragraph. Is there any solution to display in other tabs
than <textarea> paragraph by paragraph. Or do I have to change the database
field type other than text? And which type is good in this case. Thanks for
any idea.
Ga
Gaze Guest
-
Format text in text area
I have a text area on a form and I need a way to recognize when a user enters a line break. I want to send the data in the box to a database and... -
Text::Format bug
$ ruby -v ruby 1.8.0 (2003-08-04) $ ruby -e "require 'text/format'; Text::Format.new.paragraphs(' ')"... -
to format text in a form( on the fly )
Hello all, I'm interested in finding out how to format text on the fly in a form. i.e : the user can select some text and then click on a... -
Text format not corresopnding, HELP
To All I sent the mail via the CDONTS after,the message content not corresponding format of my sent before, PLEASE TEACH ME HOW CAN ME DO? And... -
Text Format String - Please help
Hi, I need to display a DateTime field in 'mm/dd/yyyy' in a DataGrid.. On myGrid1 - Properties - Columns - myColumn1 - Text format string: I... -
William Tasso #2
Re: text format
Gaze wrote:
You want a regular expression that globally replaces <cr/lf> with the> Hi,
>
> I use <textarea> input more than one paragraph to the database, whose
> field type is set to "text". Then I retrieve it to display in
> <textarea>, which is OK, paragraph by paragraph, but not in the other
> tabs because of no <P> or <br> between each paragraph. Is there any
> solution to display in other tabs than <textarea> paragraph by
> paragraph. Or do I have to change the database field type other than
> text? And which type is good in this case. Thanks for any idea.
>
required HTML tags
--
William Tasso - [url]http://WilliamTasso.com[/url]
William Tasso Guest
-
Gaze #3
Re: text format
I don't see "cr/lf" in the http source code, but \r\n in database when I use
an sofeware to display the records.
"William Tasso" <ngx@tbdata.com> wrote in message
news:uvitoqcaDHA.1816@TK2MSFTNGP09.phx.gbl...> Gaze wrote:>> > Hi,
> >
> > I use <textarea> input more than one paragraph to the database, whose
> > field type is set to "text". Then I retrieve it to display in
> > <textarea>, which is OK, paragraph by paragraph, but not in the other
> > tabs because of no <P> or <br> between each paragraph. Is there any
> > solution to display in other tabs than <textarea> paragraph by
> > paragraph. Or do I have to change the database field type other than
> > text? And which type is good in this case. Thanks for any idea.
> >
> You want a regular expression that globally replaces <cr/lf> with the
> required HTML tags
>
>
> --
> William Tasso - [url]http://WilliamTasso.com[/url]
>
>
Gaze Guest
-
Dan Brussee #4
Re: text format
On Sun, 24 Aug 2003 02:39:59 GMT, "Gaze" <dunggaze@yahoo.com> wrote:
The suggestion is more generic. Replace newline characters with>I don't see "cr/lf" in the http source code, but \r\n in database when I use
>an sofeware to display the records.
>
>"William Tasso" <ngx@tbdata.com> wrote in message
>news:uvitoqcaDHA.1816@TK2MSFTNGP09.phx.gbl...>> Gaze wrote:>>>> > Hi,
>> >
>> > I use <textarea> input more than one paragraph to the database, whose
>> > field type is set to "text". Then I retrieve it to display in
>> > <textarea>, which is OK, paragraph by paragraph, but not in the other
>> > tabs because of no <P> or <br> between each paragraph. Is there any
>> > solution to display in other tabs than <textarea> paragraph by
>> > paragraph. Or do I have to change the database field type other than
>> > text? And which type is good in this case. Thanks for any idea.
>> >
appropriate HTML tags. Just watch out for things like your example of
\r\n - which would show one line break, but if you use a global
search/replace regular expression and replace \r AND \n with <br> then
you will end up with 2 breaks. Either you need to know that ALL breaks
are the combination of \r\n or you need to do some other fancy
footwork.
Dan Brussee Guest
-
Don Verhagen #5
Re: text format
In news:kiggkvsp3eu3bcm9tleimnlpvecj2e7led@4ax.com,
Dan Brussee <dbrussee@NOSPAMnc.rr.com> typed:
: On Sun, 24 Aug 2003 02:39:59 GMT, "Gaze" <dunggaze@yahoo.com> wrote:
:
:: I don't see "cr/lf" in the http source code, but \r\n in database
:: when I use an sofeware to display the records.
::
:: "William Tasso" <ngx@tbdata.com> wrote in message
:: news:uvitoqcaDHA.1816@TK2MSFTNGP09.phx.gbl...
::: Gaze wrote:
:::: Hi,
::::
:::: I use <textarea> input more than one paragraph to the database,
:::: whose field type is set to "text". Then I retrieve it to display in
:::: <textarea>, which is OK, paragraph by paragraph, but not in the
:::: other tabs because of no <P> or <br> between each paragraph. Is
:::: there any solution to display in other tabs than <textarea>
:::: paragraph by paragraph. Or do I have to change the database field
:::: type other than text? And which type is good in this case. Thanks
:::: for any idea.
::::
:::
:
: The suggestion is more generic. Replace newline characters with
: appropriate HTML tags. Just watch out for things like your example of
: \r\n - which would show one line break, but if you use a global
: search/replace regular expression and replace \r AND \n with <br> then
: you will end up with 2 breaks. Either you need to know that ALL breaks
: are the combination of \r\n or you need to do some other fancy
: footwork.
Or execute a regexp twice:
1st) replace the 1 pair first \r\n
2nd) replace the \r or \n (can't remember which)
Don
Don Verhagen Guest
-
Lin Ma #6
Re: text format
I replace enter key chr(13) with <br>. The tab is chr(9)
Replace(yourRecord, chr(13), "<br>")
Lin Ma
"Gaze" <dunggaze@yahoo.com> wrote in message
news:lqQ1b.255285$hOa.169491@news02.bloor.is.net.c able.rogers.com...field> Hi,
>
> I use <textarea> input more than one paragraph to the database, whoseis> type is set to "text". Then I retrieve it to display in <textarea>, whichtabs> OK, paragraph by paragraph, but not in the other tabs because of no <P> or
> <br> between each paragraph. Is there any solution to display in otherdatabase> than <textarea> paragraph by paragraph. Or do I have to change thefor> field type other than text? And which type is good in this case. Thanks> any idea.
>
> Ga
>
>
Lin Ma Guest
-
Lin Ma #7
Re: text format
I solved this issue by using
<% response.write Replace(yourRecord, chr(13), "<br>") %>
Regards,
Lin
"rajesh" <rajesh_tamilan@yahoo.co.in> wrote in message
news:egVcgb$aDHA.1492@TK2MSFTNGP12.phx.gbl...ASP.NET resources...> hai lin
> i also getting the same problem
> if u solved textarea prob
> plz mail me
> -rajesh
> india
>
> ************************************************** ********************
> Sent via Fuzzy Software @ [url]http://www.fuzzysoftware.com/[/url]
> Comprehensive, categorised, searchable collection of links to ASP &
Lin Ma Guest
-
Gaze #8
Re: text format
Great! thanks.
"Lin Ma" <a@a.com> wrote in message
news:u3vd6K%23aDHA.1748@TK2MSFTNGP12.phx.gbl...which> I replace enter key chr(13) with <br>. The tab is chr(9)
>
> Replace(yourRecord, chr(13), "<br>")
>
> Lin Ma
>
>
>
>
> "Gaze" <dunggaze@yahoo.com> wrote in message
> news:lqQ1b.255285$hOa.169491@news02.bloor.is.net.c able.rogers.com...> field> > Hi,
> >
> > I use <textarea> input more than one paragraph to the database, whose> > type is set to "text". Then I retrieve it to display in <textarea>,or> is> > OK, paragraph by paragraph, but not in the other tabs because of no <P>> tabs> > <br> between each paragraph. Is there any solution to display in other> database> > than <textarea> paragraph by paragraph. Or do I have to change the> for> > field type other than text? And which type is good in this case. Thanks>> > any idea.
> >
> > Ga
> >
> >
>
Gaze Guest



Reply With Quote

