Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > CRLF How does it work for asp.net???!!

Reply
Thread Tools

CRLF How does it work for asp.net???!!

 
 
Michael Persaud
Guest
Posts: n/a
 
      05-27-2004
Hi All,

Im trying to have a few strings presented in a LABEL. However the CRLF is
not working.

eg str = str1 + crlf + str2 + crlf + str3
label.text= str

Do i need to declare the crlf as a public constant with chrw(10) +
chrw(13)?? cause this does nothing either

Can some one tell me how to resolve this issue?

Thanks
MP


 
Reply With Quote
 
 
 
 
Chris R. Timmons
Guest
Posts: n/a
 
      05-27-2004
"Michael Persaud" <(E-Mail Removed)> wrote in
news:(E-Mail Removed):

> Hi All,
>
> Im trying to have a few strings presented in a LABEL. However
> the CRLF is not working.
>
> eg str = str1 + crlf + str2 + crlf + str3
> label.text= str
>
> Do i need to declare the crlf as a public constant with chrw(10)
> + chrw(13)?? cause this does nothing either
>
> Can some one tell me how to resolve this issue?


Michael,

The label control generates HTML. Use <BR> instead of a carriage
return/linefeed:

label.Text = str1 + "<BR>" + str2 + "<BR>" + str3;

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
 
Reply With Quote
 
 
 
 
Michael Persaud
Guest
Posts: n/a
 
      05-27-2004
Hi Chris
Thanks it works

Didnt thing about the output being in HTML.

Thanks again

Michael

"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xns94F675459327Fcrtimmonscrtimmonsin@207.46.2 48.16...
> "Michael Persaud" <(E-Mail Removed)> wrote in
> news:(E-Mail Removed):
>
> > Hi All,
> >
> > Im trying to have a few strings presented in a LABEL. However
> > the CRLF is not working.
> >
> > eg str = str1 + crlf + str2 + crlf + str3
> > label.text= str
> >
> > Do i need to declare the crlf as a public constant with chrw(10)
> > + chrw(13)?? cause this does nothing either
> >
> > Can some one tell me how to resolve this issue?

>
> Michael,
>
> The label control generates HTML. Use <BR> instead of a carriage
> return/linefeed:
>
> label.Text = str1 + "<BR>" + str2 + "<BR>" + str3;
>
> --
> Hope this helps.
>
> Chris.
> -------------
> C.R. Timmons Consulting, Inc.
> http://www.crtimmonsinc.com/



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASCII file without crlf's Andrew ASP .Net 2 06-22-2004 11:12 AM
Problem in CRLF in multiline fields Jack Wright ASP .Net 1 04-21-2004 05:00 AM
Re: how to check CRLF in C# Kevin Spencer ASP .Net 3 08-27-2003 06:42 AM
Re: how to check CRLF in C# Simon Chung-Jen Chuang ASP .Net 0 08-26-2003 02:54 PM
Re: how to check CRLF in C# Jerry III ASP .Net 0 08-25-2003 07:44 AM



Advertisments