Editing static text in ItemTemplate at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have a repeater control I am using to display items that are comma
separated. The code looks like this:

<asp:Repeater id="rptSummary" runat="server">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,
Container.DataItem.Row.Table.Columns(0).ColumnName)%>,
</ItemTemplate>
</asp:Repeater>

The code works exactly as it should. However, for the last item, I would
like to remove the comma at the end of it, since obviously there is no
additional items. This is where I'm getting stuck...

How can I reference my ItemTemplate from code to remove the trailing comma?

Thanks for the help anyone can provide.

- Andre
 
Could you move the "," into a <SeparataorTemplate>?

I would post ASP.NET related questions to
microsoft.public.dotnet.framework.aspnet for a better response.

Greg
 
Back
Top