标签:
创建ListView步骤
1、添加LayoutTemplate,添加div并设置ID
2、在lListView中指定div的ID,通过ItemPlaceholderID=?
<asp:ListView ID="ListView1" runat="server" DataSourceID="listvSql" ItemPlaceholderID="itemHolder"> <%--主模块--%> <LayoutTemplate> <div runat="server" id="itemHolder"></div> </LayoutTemplate> <%--数据模块--%> <ItemTemplate> <div class="divItem"> <div class="divBtns"></div> <div class="divInfo"></div> </div> </ItemTemplate> </asp:ListView>
标签:
原文地址:http://www.cnblogs.com/hllive/p/4992202.html