Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Formatting Memo Lines For HTML output
Message
De
31/03/2005 07:56:33
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Formatting Memo Lines For HTML output
Divers
Thread ID:
01000254
Message ID:
01000254
Vues:
76
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform