Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting Memo Lines For HTML output
Message
De
31/03/2005 12:43:05
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
31/03/2005 07:56:33
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01000254
Message ID:
01000394
Vues:
35
>I have a C# web page which extracts data from a database via a third party's Web Service, adds the records into a string, with a paragraph marker between each one, and then renders them into a multiline lable on the web page.
>
>All works except the formatting is lost for the memos. In a Web Connection VFP app in the past, I have had to replace (using STRTRAN()) all CRLFs with < br > (without the spaces) prior to rendering them.
>
>What is the equivalent in C#? (I am guessing this may involve StringBuilder, but I have no idea of the syntax, or how you represent CHR(13)+CHR(10) in .NET)
>
>TIA, Kevin

myString.Replace("\n",Environment.NewLine);

Would do I think.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform