Ah! Thanks. It's always the simplest problems that are the hardest to see.
Matt
(E-Mail Removed)am wrote:
> I believe there is a syntax error. Try this instead:
>
> <asp:LinkButton id="lbDel" runat="server" CommandName="delete"
> CommandArgument='<%# DataBinder.Eval(Container.DataItem,"id")
> %>'>Remove</asp:LinkButton>
>
>
> On Jan 24, 2:53 pm, MattB <somedud...@yahoo.com> wrote:
>> I'm trying to put a Link button in the ItemTemplate of a repeater. I've
>> created/wired the handler event, and I'm just trying to make the
>> LinkButton pass what I need to that event. I thought I had it right, but
>> I get a parser error when running this page. LinkButton looks like this:
>>
>> <asp:LinkButton id="lbDel" runat="server" CommandName="delete"
>> CommandArgument='<%# DataBinder.Eval(Container.DataItem,
>> "id"%>')>Remove</asp:LinkButton>
>>
>> I'm pretty sure there is a problem with the CommandArgument part but I
>> can't figure out what it is. I've been trying different uses of single
>> and double quotes thinking maybe that was it but it still hasn't started
>> working. Can anyone see what I did wrong there? Thanks!
>>
>> Matt
>