I want to list Datalist-Items in one Line, tried it like that:
<asp:DataList ID="DataList1" runat="server">
<ItemTemplate>
<%# Eval("Login"); %>
</ItemTemplate>
</asp:DataList>
(Edited Code for better readability, that is why there is no DataSource etc, but this works fine anyways)
But it keeps writing each element in one single line.
How can I get Value1, Value2, Value3 in one line?
Help is very apreciated :) Thanks in advance for every tip,
Harry
Try this:
<asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" RepeatColumns="5" RepeatLayout="Table" ..>
You can adjust the number of columns to repeat across, and the layout.