title: how to split table rows in ASP .Net C#
body: <p>I have HTML Code in a string named gridHTML </p>
  
  <pre><code>    &lt;html&gt;
  &lt;body&gt;
  &lt;style&gt;a{text-decoration:none; color: black;} th { border: solid thin; }
  
  td{text-align: center;vertical-align: middle;font-family: Arial;font-size: 8pt; height: 50px;
  border-width: 1px;border-left-style: solid;border-right-style: solid;}
  
  table { border-collapse: collapse; } tr:nth-child(1) { border: solid thin; border-width: 2px;}
  tr{ border: solid thin; border-style: dashed solid dashed solid;}
  &lt;/style&gt;
  &lt;div&gt;
      &lt;table &gt;
          &lt;tr class='leftColumnTableHeadO' align='center' style='font-family: Arial; font-size: 8pt; font-weight: normal; width: 100px;'&gt;
              &lt;th scope='col'&gt;TM No.&lt;/th&gt;
              &lt;th scope='col' style='width: 83px;'&gt;Filing Date&lt;/th&gt;
              &lt;th scope='col'&gt;TradeMark&lt;/th&gt;
              &lt;th scope='col'&gt;Class&lt;/th&gt;
              &lt;th scope='col'&gt;Jr#&lt;/th&gt;
              &lt;th scope='col'&gt;Applicant&lt;/th&gt;
              &lt;th scope='col'&gt;Agent / Attorney&lt;/th&gt;
              &lt;th scope='col'&gt;Status&lt;/th&gt;
              &lt;th scope='col'&gt;City&lt;/th&gt;
              &lt;th scope='col'&gt;Logo&lt;/th&gt;
          &lt;/tr&gt;
          &lt;tr class='lightGrayBg' &gt;
              &lt;td &gt;&lt;a title='View Report' class='calBtn' href='javascript:__doPostBack(&amp;#39;ctl00$MainContent$grdTradeMarkNumber$ctl02$ctl00&amp;#39;,&amp;#39;&amp;#39;)'&gt;38255&lt;/a&gt;                                        &lt;/td&gt;
              &lt;td &gt;&lt;span id='MainContent_grdTradeMarkNumber_lblFilingDate_0'&gt;09-12-1962&lt;/span&gt;                                        &lt;/td&gt;
              &lt;td &gt;IMIDAN&lt;/td&gt;
              &lt;td &gt;5&lt;/td&gt;
              &lt;td &gt;158&lt;/td&gt;
              &lt;td &gt;test&lt;/td&gt;
              &lt;td &gt;test&lt;/td&gt;
              &lt;td &gt;Registered&lt;/td&gt;
              &lt;td &gt;DELWARE&lt;/td&gt;
              &lt;td &gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr &gt;
              &lt;td &gt;&lt;a title='View Report' class='calBtn' href='javascript:__doPostBack(&amp;#39;ctl00$MainContent$grdTradeMarkNumber$ctl03$ctl00&amp;#39;,&amp;#39;&amp;#39;)'&gt;188389&lt;/a&gt;                                        &lt;/td&gt;
              &lt;td &gt;&lt;span id='MainContent_grdTradeMarkNumber_lblFilingDate_1'&gt;09-09-2003&lt;/span&gt;                                        &lt;/td&gt;
              &lt;td &gt;RAND&lt;/td&gt;
              &lt;td &gt;16&lt;/td&gt;
              &lt;td &gt;682&lt;/td&gt;
              &lt;td &gt;Ttest &lt;/td&gt;
              &lt;td &gt;test &lt;/td&gt;
              &lt;td &gt;Advertised&lt;/td&gt;
              &lt;td &gt;CALIFORNIA&lt;/td&gt;
              &lt;td &gt;&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr class='lightGrayBg' &gt;
              &lt;td &gt;&lt;a title='View Report' class='calBtn' href='javascript:__doPostBack(&amp;#39;ctl00$MainContent$grdTradeMarkNumber$ctl04$ctl00&amp;#39;,&amp;#39;&amp;#39;)'&gt;207063&lt;/a&gt;                                        &lt;/td&gt;
              &lt;td &gt;&lt;span id='MainContent_grdTradeMarkNumber_lblFilingDate_2'&gt;11-03-2005&lt;/span&gt;                                        &lt;/td&gt;
              &lt;td &gt;FP DIESEL&lt;/td&gt;
              &lt;td &gt;7&lt;/td&gt;
              &lt;td &gt;690&lt;/td&gt;
              &lt;td &gt;testtest&lt;/td&gt;
              &lt;td &gt;testtest&lt;/td&gt;
              &lt;td &gt;Advertised&lt;/td&gt;
              &lt;td &gt;-&lt;/td&gt;
              &lt;td &gt;&lt;/td&gt;
          &lt;/tr&gt;
  
      &lt;/table&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want to get all rows separately in a list
  i am using split method to do this </p>
  
  <pre><code>List&lt;string&gt; rows = gridHTML.Split(new string[] { "&lt;tr" }, StringSplitOptions.None).ToList();
  </code></pre>
  
  <p>but the problem is when i look into the list <code>"&lt;td"</code> is removed</p>
  
  <p>Is there any (other) way to get all rows in a list ?</p>