Re: Editing static text in ItemTemplate
From: Greg Burns (greg_burns_at_DONT_SPAM_ME_hotmail.com)
Date: 10/03/04
- Next message: amos: "Re: DotNet & Netscape4"
- Previous message: Simon Harris: "Re: declaration expected"
- In reply to: Andre Viens: "Re: Editing static text in ItemTemplate"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 3 Oct 2004 17:12:35 -0400
I apologize for being curt. No place for that. I should have explained
better.
Greg
"Andre Viens" <AndreViens@discussions.microsoft.com> wrote in message
news:DFF41716-1D24-4172-AF88-1FF97602ED1E@microsoft.com...
> Hello Greg,
>
> My apologies...
>
> I did in fact try the SeparatorTemplate, but I immediately went to debug
> mode to try and extract the final separator. I did not realize the
> separator
> itself would not render for the last item.
>
> This works great. Thanks for the help!
>
> - Andre
>
> "Greg Burns" wrote:
>
>> > It has been suggested to use a SeparatorTemplate to do this, but I
>> > still
>> > do
>> > not see how to reference the final SeparatorTemplateItem after it is
>> > bound
>> > to
>> > the data.
>>
>> Did you bother to even try?
>>
>> <asp:Repeater id="rptSummary" runat="server">
>> <ItemTemplate>
>> <%# DataBinder.Eval(Container.DataItem,
>> Container.DataItem.Row.Table.Columns(0).ColumnName)%>
>> </ItemTemplate>
>> <SeparatorTemplate>,</SeparatorTemplate>
>> </asp:Repeater>
>>
>> SELECT TOP 10 CustomerID FROM customers
>>
>> outputs...
>>
>> ALFKI , ANATR , ANTON , AROUT , BERGS , BLAUS , BLONP , BOLID , BONAP ,
>> BOTTM
>>
>> Greg
>>
>>
>>
- Next message: amos: "Re: DotNet & Netscape4"
- Previous message: Simon Harris: "Re: declaration expected"
- In reply to: Andre Viens: "Re: Editing static text in ItemTemplate"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|