Out, damned space
Posted by: mikes web log,
on 09 Feb 2010 |
View original | Bookmarked: 0 time(s)
The other day I was doing something where I wanted to display some data as a comma-delimited list, like so:a, b, c, dThis seemed like a job for the Repeater control. So I created the markup for the control and included a separator template, like this:<asp:Repeater runat="server" ID="Repeater1" DataSourceID="LinqDataSource3" > <ItemTemplate> <asp:Label runat="server" ID="labelCategory" Text='<%# Eval("Category") %>'> </asp:Label> </ItemTemplate> <SeparatorTemplate>,...