title: Is it possible to define two item template in asp:ListView?
body: <p>Is it possible to do the following in listview? if not. please correct me.</p>
  
  <pre><code>    &lt;asp:ListView runat="server" ID="lsit"&gt;
      &lt;LayoutTemplate&gt;
          &lt;div id="banner"&gt;
              &lt;div id="paginate-slider2" class="banner_nav"&gt;
                  &lt;asp:PlaceHolder runat="server" ID="itemPlaceHolder1" /&gt;
              &lt;/div&gt;
              &lt;div id="slider2"&gt;
                  &lt;asp:PlaceHolder runat="server" ID="itemPlaceHolder2" /&gt;
              &lt;/div&gt;
              &lt;script src="/scripts/banner.js" type="text/javascript"&gt;&lt;/script&gt;
          &lt;/div&gt;
          &lt;div class="clear"&gt;&lt;/div&gt;
      &lt;/LayoutTemplate&gt;
      &lt;ItemTemplate&gt;
          &lt;a href="#" class="toc"&gt;
              &lt;img src="./images/gallery/thumbnails/thumb1.gif" alt="" /&gt;
          &lt;/a&gt; 
      &lt;/ItemTemplate&gt;
      &lt;ItemTemplate&gt;
          &lt;div class="contentdiv banner_sec"&gt;
              &lt;div class="con_img"&gt;
                  &lt;img src="./images/gallery/images/img1.gif" alt="" /&gt;
              &lt;/div&gt;
              &lt;div class="con_desc"&gt;
                  &lt;h3&gt;Featured&lt;/h3&gt;
                  &lt;h5&gt;Lorem ipsum dolor sit amet&lt;/h5&gt;
                  &lt;p&gt;
                      Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed elit.
                  &lt;/p&gt;
                  &lt;br /&gt;
                  &lt;a href="./detail.html" class="buttontwo"&gt;&lt;span&gt;Read More&lt;/span&gt;&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/ItemTemplate&gt;
  &lt;/asp:ListView&gt;
  </code></pre>
  
  <p>Update:
  I want to output something like this;</p>
  
  <pre><code>&lt;!-- Home Banner Section --&gt;
  &lt;div id="banner"&gt;
      &lt;div id="paginate-slider2" class="banner_nav"&gt;
          &lt;!-- this should be repeated for each item --&gt;
  
          &lt;a href="#" class="toc"&gt;
              &lt;img src="./images/gallery/thumbnails/thumb1.gif" alt="" /&gt;
          &lt;/a&gt; 
      &lt;/div&gt;
      &lt;div id="slider2"&gt;
          &lt;!-- this should be repeated for each item --&gt;
          &lt;div class="contentdiv banner_sec"&gt;
              &lt;div class="con_img"&gt;
                  &lt;img src="./images/gallery/images/img1.gif" alt="" /&gt;
              &lt;/div&gt;
              &lt;div class="con_desc"&gt;
                  &lt;h3&gt;Featured&lt;/h3&gt;
                  &lt;h5&gt;Lorem ipsum dolor sit amet&lt;/h5&gt;
                  &lt;p&gt;
                      Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed elit. Nulla sem risus, vestibulum in, volutpat eget, dapibus ac, lectus. Curabitur dolor sapien, hendrerit non, suscipit bibendum, auctor ac, arcu. Vestibulum dapibus. Sed pede lacus, pretium in, condimentum sit amet, mollis dapibus, magna. Ut bibendum dolor nec augue. Ut tempus luctus metus. Sed a velit. Pellentesque at libero elementum ante condimentum sollicitudin. Pellentesque lorem ipsum, semper quis, interdum et, sollicitudin eu, purus. Vivamus fringilla ipsum vel orci.
                  &lt;/p&gt;
                  &lt;br /&gt;
                  &lt;a href="./detail.html" class="buttontwo"&gt;&lt;span&gt;Read More&lt;/span&gt;&lt;/a&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;script src="/scripts/banner.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/div&gt;
  &lt;div class="clear"&gt;&lt;/div&gt;
  </code></pre>