Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro TEXT TO Equivalent in C#
Message
 
 
À
16/10/2009 18:58:49
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01429711
Message ID:
01429712
Vues:
87
>Is there a way to implement something like the TEXT TO command used in FoxPro in C#?
>
>I want to build an HTML page and upload it to our server I need to create a couple of strings that will include the code of the HTML page. (Haven't written any code in ASP so its probably easy, but I'm ignorant of how to do it).
>
>Code like the below:
>
>
>TEXT TO m.cBeginHTML TEXTMERGE noshow
><html>
> 
><head>
><title>Marketware QuickList Map</title>
><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>
>ENDTEXT
>
>
>In C#:
>
>string cBeginHTML = ??
>
>
>The challenge here is there are lots of enbedded " and \ etc which get interpreted by C# and then they mess up the string or the HTML code.
>
>Thanks!
>
>Bob

Bob,

Try

string cBeginHTML = @"my Complex String
with some formatting";
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform