>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