Making ListView Items align horizontally RRS feed

  • Question


    I have following Code of My Listview I wanted to put my listview items in horizontal alignment

    How could be possible some suggestions please

    thank you

    <asp:ListView ID="ListView1" runat="server" ItemPlaceholderID="ContentID"> <LayoutTemplate> <table cellpadding="0" cellspacing="0" border="0"> <tbody runat="server" id="ContentID"> </tbody> </table> </LayoutTemplate> <ItemTemplate> <tr> <td width="100px" align="center"> <asp:ImageButton AlternateText="P" ID="Imgbtn1" runat="server" ImageUrl='<%# Bind("ImageUrl") %>' Width="75px" CommandName="Myselect1" CommandArgument='<%# Bind("ID") %>' OnCommand="ImageButton_Command" /> <br /> <%# Eval("Name") %> <br /> <asp:Label ID="lbl1" runat="server" Text=' <%# Bind("LastCheckInCheckOut.CheckInTime")%>' /> <asp:Label ID="lbl2" runat="server" Text='<%# Bind("LastCheckInCheckOut.CheckOutTime")%> ' /> </td> </tr> </ItemTemplate> </asp:ListView></div>

    • Edited by qqaadir Monday, May 28, 2012 2:07 PM
    • Moved by Mike Danes Monday, May 28, 2012 2:37 PM asp.net related (From:Windows Presentation Foundation (WPF))
    Monday, May 28, 2012 2:05 PM