是否可以在列表视图中执行以下操作?如果不。请纠正我。
<asp:ListView runat="server" ID="lsit">
<LayoutTemplate>
<div id="banner">
<div id="paginate-slider2" class="banner_nav">
<asp:PlaceHolder runat="server" ID="itemPlaceHolder1" />
</div>
<div id="slider2">
<asp:PlaceHolder runat="server" ID="itemPlaceHolder2" />
</div>
<script src="/scripts/banner.js" type="text/javascript"></script>
</div>
<div class="clear"></div>
</LayoutTemplate>
<ItemTemplate>
<a href="#" class="toc">
<img src="./images/gallery/thumbnails/thumb1.gif" alt="" />
</a>
</ItemTemplate>
<ItemTemplate>
<div class="contentdiv banner_sec">
<div class="con_img">
<img src="./images/gallery/images/img1.gif" alt="" />
</div>
<div class="con_desc">
<h3>Featured</h3>
<h5>Lorem ipsum dolor sit amet</h5>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed elit.
</p>
<br />
<a href="./detail.html" class="buttontwo"><span>Read More</span></a>
</div>
</div>
</ItemTemplate>
</asp:ListView>
更新:我想输出这样的东西;
<!-- Home Banner Section -->
<div id="banner">
<div id="paginate-slider2" class="banner_nav">
<!-- this should be repeated for each item -->
<a href="#" class="toc">
<img src="./images/gallery/thumbnails/thumb1.gif" alt="" />
</a>
</div>
<div id="slider2">
<!-- this should be repeated for each item -->
<div class="contentdiv banner_sec">
<div class="con_img">
<img src="./images/gallery/images/img1.gif" alt="" />
</div>
<div class="con_desc">
<h3>Featured</h3>
<h5>Lorem ipsum dolor sit amet</h5>
<p>
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.
</p>
<br />
<a href="./detail.html" class="buttontwo"><span>Read More</span></a>
</div>
</div>
</div>
<script src="/scripts/banner.js" type="text/javascript"></script>
</div>
<div class="clear"></div>