Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro TEXT TO Equivalent in C#
Message
De
17/10/2009 23:29:59
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01429711
Message ID:
01429750
Vues:
59
Thanks! I mean I knew it before I asked...but I was getting messed up with the "s inbedded in the code, until I remembered that I needed to replace them with \"".

Bob


>>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";
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform