title: ASP Listview, ItemPlaceHolder problems
body: <p>I've got a problem here with a div not being placed that way I'd like it to.</p>
  
  <p>This is the ASP code I'm using:</p>
  
  <pre><code>&lt;asp:ListView ID="categoriesListView" runat="server"&gt;
  
      &lt;LayoutTemplate&gt;
          &lt;div class="main" runat="server"&gt; 
              &lt;div ID="itemPlaceholder" class="sub" runat="server"&gt;
  
              &lt;/div&gt;
          &lt;/div&gt; 
      &lt;/LayoutTemplate&gt;
  
      &lt;EmptyDataTemplate&gt;
          &lt;div class="main" runat="server"&gt; 
              &lt;div class="sub" ID="itemPlaceholder" runat="server"&gt;
                  No data was returned.
              &lt;/div&gt;
          &lt;/div&gt; 
      &lt;/EmptyDataTemplate&gt;
  
      &lt;ItemTemplate&gt;
          &lt;asp:Image AlternateText='&lt;%# Eval("CategoryName") %&gt;' ID="Image1" runat="server" ImageUrl='&lt;%# Eval("CategoryImgUrl", "~/Images/{0}") %&gt;' /&gt;
          &lt;asp:Label ID="ProductNameLabel" runat="server" Text='&lt;%# Eval("CategoryName") %&gt;' /&gt;
      &lt;/ItemTemplate&gt;
  
  &lt;/asp:ListView&gt;
  </code></pre>
  
  <p>I was expecting results like this:</p>
  
  <pre><code>&lt;div class="main"&gt;
        &lt;div class="sub"&gt;
              ...
        &lt;/div&gt;
        &lt;div class="sub"&gt;
              ...
        &lt;/div&gt;
        &lt;div class="sub"&gt;
              ...
        &lt;/div&gt;
        ...
  &lt;/div&gt;
  </code></pre>
  
  <p>The result was one big div "main" containing everything, with no "sub" divs.</p>
  
  <p>If I added the itemPlaceholder one level deeper, the same thing would happen, now with 1 "sub" div and everything pushed in there. How do I solve this?</p>