Here's a little background as to what i'm trying to do
i've got a html file which has got sections in out identified by div's like so
This html file is called something like test.htm
Now in C# I'm trying to read the contents of this html file but exclude certain sections depending on that variables i've got.
i.e. in the C# code I might have an array of boolean like:
Section1 = true
Section2 = false
Section3 = true
Section4 = false
I need to ready the contents of the html file but in the variable that holds the read data I need the sections that are marked false removed.
Any ideas on this ?
i've got a html file which has got sections in out identified by div's like so
Code:
<HTML>
<HEAD><TITLE>This Page</TITLE></HEAD>
<BODY>
<Div id="Section1">
lar lar lar lar lar
</div>
<Div id="Section2">
lar lar lar lar lar
</div>
<Div id="Section3">
lar lar lar lar lar
</div>
<Div id="Section4">
lar lar lar lar lar
</div>
</BODY>
</HTML>
This html file is called something like test.htm
Now in C# I'm trying to read the contents of this html file but exclude certain sections depending on that variables i've got.
i.e. in the C# code I might have an array of boolean like:
Section1 = true
Section2 = false
Section3 = true
Section4 = false
I need to ready the contents of the html file but in the variable that holds the read data I need the sections that are marked false removed.
Any ideas on this ?