Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Formatting Memo Lines For HTML output
Message
From
31/03/2005 12:43:05
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01000254
Message ID:
01000394
Views:
37
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform