travisowens
Well-known member
// What am I not seeing here?
StreamReader sr = new StreamReader("template.html");
string templateMain = sr.ReadToEnd().ToString();
sr.Close();
// Ive tried both ways below, either way nothing happens when I view templateMain
templateMain.Replace("<!-- %%HTMLTITLE%% -->","OIN Intranet");
templateMain = Regex.Replace(templateMain, "<!-- %%HTMLTITLE%% -->", "ON Intranet");
StreamReader sr = new StreamReader("template.html");
string templateMain = sr.ReadToEnd().ToString();
sr.Close();
// Ive tried both ways below, either way nothing happens when I view templateMain
templateMain.Replace("<!-- %%HTMLTITLE%% -->","OIN Intranet");
templateMain = Regex.Replace(templateMain, "<!-- %%HTMLTITLE%% -->", "ON Intranet");