<asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView1" PageSize="5"> <Fields> <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowLastPageButton="True" /> </Fields> </asp:DataPager> <asp:ListView ID="ListView1" runat="server"> <LayoutTemplate> <table border="0px" width="700px" cellspacing='0px' cellpadding="0px"> <tr id="itemPlaceholder" runat="server"> </tr> </table> </LayoutTemplate> <ItemTemplate> <tr style="background-color: #A52A2A; color: White; text-indent: 20px;"> <td align="left"> <asp:Label runat="server" ID="lblId"><%# Eval("name") %></asp:Label> </td> <td align="right"> <asp:Label runat="server" ID="lblName"><%#Eval("schdule")%></asp:Label> </td> </tr> <tr> <td colspan='2' style="text-indent: 10px;"> <asp:Label runat="server" ID="lblName1"><%#Eval("message")%></asp:Label> <br /> <br /> <br /> </td> </tr> </ItemTemplate> <SelectedItemTemplate> <tr runat="server" style="background-color: Yellow;"> <td align="left"> <asp:Label runat="server" ID="lblId1"><%#Eval("name") %></asp:Label> </td> <td align="right"> <asp:Label runat="server" ID="lblName2"><%#Eval("schdule")%></asp:Label> </td> </tr> </SelectedItemTemplate> </asp:ListView>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)