我正在尝试将列表视图格式化为表格格式。在列表视图中,我有一个ul。
<asp:ListView ID="listview_leads" runat="server" ItemContainerID="layoutTemplate"
ItemPlaceholderID="items" GroupItemCount="3" GroupPlaceholderID="groups" >
<LayoutTemplate>
<asp:PlaceHolder ID="groups" runat="server"></asp:PlaceHolder>
</LayoutTemplate>
<GroupTemplate><tr>
<asp:PlaceHolder runat="server" ID="items"></asp:PlaceHolder></tr>
</GroupTemplate>
<ItemTemplate>
<div class="container">
<ul>
<li><asp:HiddenField runat="server" ID="hdnId" Value='<%# Eval("Id") %>' />
Property Id: <asp:Label runat="server" ID="lblpropid" Text='<%# Eval("Idtbl_property") %>'></asp:Label></li>
<li>Client Name: <asp:Label runat="server" Text='<%# Eval("ClientName") %>'></asp:Label></li>
<li>Client Email: <asp:Label runat="server" Text='<%# Eval("ClientEmail") %>'></asp:Label></li>
<li>Client Cell Number: <asp:Label runat="server" Text='<%# Eval("ClientCell") %>'></asp:Label></li>
<li>Select Status: <asp:DropDownList ID="ddl_status" runat="server" OnInit="ddl_status_Init"></asp:DropDownList></li>
<li><button><a href="leadhistory.aspx?leadid=<%# Eval("Id") %>" id="hypLH">History</a></button></li>
</ul>
</div>
</ItemTemplate>
</asp:ListView>
我正在尝试直观地获取表格输出