title: C#/ASP.NET - Repeater with a HTML select
body: <p>I'm trying to display some data within a select using the following code:</p>
  
  <pre><code>&lt;select name="area" runat="server"&gt;
      &lt;asp:Repeater ID="RepeaterArea" runat="server"&gt;
      &lt;ItemTemplate&gt;
          &lt;option value="&lt;%# Eval("Id") %&gt;"&gt;&lt;%# Eval("Area") %&gt;&lt;/option&gt;
      &lt;/ItemTemplate&gt;
      &lt;/asp:Repeater&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>But unfortunately I get the following error: <code>The server tag is not well formed.</code></p>
  
  <p>If I try to change it to <code>value="&lt;%# Eval('Id') %&gt;"</code> I get an error saying: <code>CS1012: Too many characters in character literal</code></p>
  
  <p>Any suggestions would be very welcome, thank you!</p>