title: Cannot pass value to page through HtmlGenericControl Property
body: <p>Here is the .aspx file</p>
  <pre><code>&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;            
      &lt;input type=&quot;text&quot; id=&quot;StringValue&quot; runat=&quot;server&quot;/&gt;
      &lt;datalist id=&quot;dataList&quot; runat=&quot;server&quot;&gt;&lt;/datalist&gt;
      &lt;% CreateContent(_sql)%&gt;
  &lt;/form&gt;
  </code></pre>
  <p>And here is the .vb file (<code>CreateContent</code>)</p>
  <pre><code>Protected Sub CreateContent(ByVal sql As String)
  
      Dim optList As New List(Of String)
      optList = GetData(sql)
  
      Dim table As New DataTable()
      table.Columns.Add(New DataColumn(&quot;DataOptions&quot;))
      For Each opt In optList
          table.Rows.Add(opt)
      Next
      For Each row In table.Rows
          dataList.InnerHtml = dataList.InnerHtml &amp; vbCrLf &amp; String.Format(&quot;&lt;option value='{0}'&gt;&quot;, row(0))
      Next
      MsgBox(dataList.InnerHtml)
  
  End Sub
  </code></pre>
  <p>When I tested the page, the <code>MsgBox</code> could actually show all the <code>&lt;option&gt;</code> elements. However, these contents can only exist in server side. <code>&lt;datalist&gt;</code> is always empty in page source. Anyone can explain what prevent the content being passed to the page and how to solve it?</p>