Hi i´m parsing aspx file to XML and i have this code:
if (lineLower.StartsWith("</asp:content>")) || (lineLower.StartsWith("</asp:Content>") && lineLower.EndsWith(">")))
{
temp += line.Replace(line, " ");
}
But this temp += line.Replace(line, " "); will just add a space before < /asp:content> instead of replacing it byt space.
Do i need to use different syntax?
First, you have this
You're closing your
if
too soonTry this