I'm having a hard time figuring out why my code will not produce a datatable with text. Can anyone give me a clue, what am I missing? Thanks in advance.

VB Code:
  1. For Each line In Values
  2.  
  3.                 ' Create rows collection using TableRow object to dynamically add rows
  4.                 Dim tRow As New TableRow()
  5.  
  6.                 ' Split the current line in the Values list
  7.                 Dim split As String() = line.Split(New [Char]() {})
  8.  
  9.                 ' Assign the values from the split(0...5)
  10.                 Dim sb_Text As String = ""
  11.                 Dim sb_CTime As String = ""
  12.  
  13.                 ' Set Time Zone
  14.                 Dim sb_TZ As String = "EST"
  15.  
  16.                 ' Reset the counter to 0 for each line
  17.                 Dim evaluated As Int32 = 0
  18.  
  19.                 Dim sl As New LiteralControl
  20.  
  21.                 ' Loop through the split string array to get the values assigned to the elements
  22.                 ' passed to the TableCell object, should always be 6 elements/columns
  23.                 For Each s As String In split
  24.  
  25.                     ' Create a new cell fro the current row
  26.                     Dim tCell As New TableCell()
  27.                     Dim dRow As DataRow
  28.                     dRow = dt.NewRow()
  29.  
  30.                     ' If the current s value contains pdf or txt, s is the Text value
  31.                     If s.Contains("pdf") Or s.Contains("txt") Then
  32.                         sb_Text = "<a href=""" + RepURLPath + s + """>" + s + "</a>"
  33.                         evaluated = evaluated + 1
  34.  
  35.                         ' Create a Hyperlink Web Server control and add to cell
  36.                         Dim h As New HyperLink()
  37.                         h.Text = s
  38.                         h.NavigateUrl = sb_Text
  39.  
  40.                         ' Add cell to row
  41.                         h = h
  42.                         'tCell.Controls.Add(h)
  43.                         'tCell.Text = h.Text
  44.                         dRow("File") = h
  45.  
  46.                         ' If s contains :, it must be the CTime value
  47.                     ElseIf s.Contains(":") Then
  48.                         sb_CTime = s
  49.                         evaluated = evaluated + 1
  50.  
  51.                         ' Used instr to find first colon, advance to milliseconds, then remove milliseconds
  52.                         ' from the second colon on
  53.                         Dim colfind = InStr(":", sb_CTime)
  54.                         sb_CTime = sb_CTime.Remove(colfind + 4, 3)
  55.  
  56.                         ' Convert string to string literal control
  57.                         'sl.Text = sb_CTime
  58.                         'tCell.Controls.Add(sl)
  59.                         'tCell.Text = sl.Text
  60.                         dRow("Time") = sb_CTime
  61.  
  62.                         ' If s contains AM or PM, it must be Ampm value
  63.                     ElseIf s.Contains("AM") Or s.Contains("PM") Then
  64.  
  65.                         evaluated = evaluated + 1
  66.  
  67.                         ' Convert string to string literal control
  68.                         'sl.Text = s
  69.                         'tCell.Controls.Add(sl)
  70.                         'tCell.Text = sl.Text
  71.                         dRow("AM/PM") = s
  72.  
  73.                         ' If s contains / , it must be the modified/lastwrite value
  74.                     ElseIf s.Contains("/") Then
  75.  
  76.                         evaluated = evaluated + 1
  77.  
  78.                         ' Convert string to string literal control
  79.                         'sl.Text = s
  80.                         'tCell.Controls.Add(sl)
  81.                         'tCell.Text = sl.Text
  82.                         dRow("Date") = s
  83.  
  84.                         ' Else s does not contain does not contain the punctuation marks
  85.                         ' : < and / , it must be the fsize value+
  86.                     Else
  87.  
  88.                         evaluated = evaluated + 1
  89.  
  90.                         ' Convert string to string literal control
  91.                         'sl.Text = s
  92.                         'tCell.Controls.Add(sl)
  93.                         'tCell.Text = sl.Text
  94.                         dRow("Size") = s
  95.  
  96.                     End If
  97.  
  98.                     ' If evaluated is equal to 5, (0...4), all seperate elements of the single
  99.                     ' value s have been evaluated. Output the lines into the formated columns
  100.                     ' changed to 5 from 6 because the <BR> was removed
  101.                     If evaluated = 5 Then
  102.  
  103.                         ' Add time zone cell to row
  104.                         dRow("Zone") = sb_TZ
  105.  
  106.                         ' Add new table cells object to the row
  107.                         tRow.Cells.Add(tCell)
  108.  
  109.                     End If
  110.                 Next
  111.                 ' Add cell collection/row to table once all values for the current line is evaluated
  112.                 dt.Rows.Add(tRow)
  113.             Next