Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro TEXT TO Equivalent in C#
Message
De
16/10/2009 18:58:49
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
FoxPro TEXT TO Equivalent in C#
Divers
Thread ID:
01429711
Message ID:
01429711
Vues:
214
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform