asp:Repeater within asp:Content
<p>I have the following piece of code:</p>

<pre><code>&lt;asp:Content id="Content1" runat="server" contentplaceholderid="PlaceHolderPageDescription"&gt;
      &lt;table class="custom-table"&gt;
              &lt;asp:Repeater ID="oRepeater" runat="server" &gt;
         &lt;ItemTemplate&gt;
          &lt;tr onclick="javascript:location.href='/nuovoTema/viewIdea.aspx?ID='"&gt;
           &lt;td&gt;&lt;%# ((SPListItem)Container.DataItem)["ID"] %&gt;&lt;/td&gt;
          &lt;/tr&gt;
         &lt;/ItemTemplate&gt;
        &lt;/asp:Repeater&gt;  
      &lt;/table&gt;   
&lt;/asp:Content&gt;
</code></pre>

<p>The compiler complains that <code>In content pages, content is not allowed outside &lt;script&gt; or &lt;asp:Content&gt; regions</code>.</p>

<p>How can I use asp:Content and asp:Repeater together? I have a list to display.</p>

<p>Thanks</p>
