日期:2014-05-17  浏览次数:20370 次

【求助】ListView如何调样式???

    <asp:ListView ID="ListView_Check_No" runat="server" DataSourceID="Check_No_Datasource">
        <LayoutTemplate>
            <table id="UserData" class="TableSub">
                <tr>
                    <th scope="col">
                        <asp:Label ID="lb1" runat="server" Text="拆迁户" />
                    </th>
                    <th scope="col">
                        <asp:Label ID="lb2" runat="server" Text="地块" />
                    </th>
                    <th scope="col">
                        <asp:Label ID="lb3" runat="server" Text="户型" />
                    </th>
                    <th scope="col">
                        <asp:Label ID="lb4" runat="server" Text="选房顺序" />
                    </th>
                </tr>
                <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#Eval("FAMILY_NAME")%>
                </td>
                <td>
                    <%#Eval("G_NAME")%>
                </td>