Hi guys,
First project, first post.
My app builds webpages and personalises the content by running a foreach loop through rows in a dataset.
My original web page build was hardcoded and works fine.
I want to take this one stage further and allow users to paste their own html into a text box and use button controls to insert values from the dataset arrays. Doing this however leads to the app writing the string verbatim.
Some examples at this point might help: Original code here
System.IO.StreamWriter objWriter;
objWriter = new System.IO.StreamWriter(webpage);
objWriter.WriteLine("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN' 'http://www.w3.org/TR/html4/loose.dtd'>");
objWriter.WriteLine("<head>");
objWriter.WriteLine("<title>" + row.ItemArray.GetValue(0).ToString() + "'s very own webpage" + "</title>";);
objWriter.WriteLine("<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>");
objWriter.WriteLine("");
objWriter.WriteLine("</head>");
objWriter.WriteLine("<body>");
objWriter.WriteLine("<h1>Well hello there " + row.ItemArray.GetValue(5).ToStri
View Complete Post