First of all my application is not a web application. My aim is reading html files and modify them.
So that I write this code:
string fileName =
Get position of start and end index of section_1
stringIndex =StringNthOccFinder.IndexOfNth(HtmlSting, "", 0, 14);
get HTML section which you want to remove
HtmlSection= result.Substring(stringIndex , endIdex - stringIndex );
Replace html section to ""
result = result.Replace(HtmlSection, "");