|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Display text with <newline> characters...Hi
When users write a text in a textarea, they hit [ENTER]. So the text is cut by <newline> caracters. When display this text in a LabelText, i must convert these <newline> in <br>. Is there a control to do that? Otherwise, what is the best function to parse and convert <newline> tokens into <br> balise? Thanks Try using the following:
lblYourLabel.Text.Replace(ControlChars.NewLine, "<br>") I used this code in some of my pages, and it worked great. Good Luck! Show quoteHide quote "TTT" <hieu.protectspam@laposte.net> wrote in message news:4499ce8a$0$16569$636a55ce@news.free.fr... > Hi > > When users write a text in a textarea, they hit [ENTER]. So the text is > cut by <newline> caracters. > > When display this text in a LabelText, i must convert these <newline> in > <br>. Is there a control to do that? > Otherwise, what is the best function to parse and convert <newline> tokens > into <br> balise? > > Thanks >
Problem updating with TableAdapter in Detailsview.
validation message only show in val summary when ShowSummary=true when no js to execute on client Formview Question "AJAX" techniques for the ASPNET 2.0 TreeView control? I need a chart control with a special feature Event from one WebControl triggering an event in another Web control Client ID of User Control in Page templates HttpContext.Current.Session problem Sorting DataView problem Interactivity between placeholders & objectdatasouces |
|||||||||||||||||||||||