CommandArgument for a LinkButton in a repeater (.net 1.1)
CommandArgument for a LinkButton in a repeater (.net 1.1)
am 24.01.2008 23:53:18 von MattB
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:
CommandArgument='<%# DataBinder.Eval(Container.DataItem,
"id"%>')>Remove
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
Re: CommandArgument for a LinkButton in a repeater (.net 1.1)
am 25.01.2008 01:38:44 von Aaron Bronow
I believe there is a syntax error. Try this instead:
CommandArgument=3D'<%# DataBinder.Eval(Container.DataItem,"id")
%>'>Remove
On Jan 24, 2:53=A0pm, MattB 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:
>
>
> CommandArgument=3D'<%# DataBinder.Eval(Container.DataItem,
> "id"%>')>Remove
>
> 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
Re: CommandArgument for a LinkButton in a repeater (.net 1.1)
am 25.01.2008 04:44:40 von Jignesh Desai
Closing brackets of Eval function is missing
Regards
JIGNESH
"MattB" wrote in message
news:5vsj72F1o8ql9U1@mid.individual.net...
> 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:
>
>
> CommandArgument='<%# DataBinder.Eval(Container.DataItem,
> "id"%>')>Remove
>
> 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
Re: CommandArgument for a LinkButton in a repeater (.net 1.1)
am 25.01.2008 20:19:08 von MattB
Ah! Thanks. It's always the simplest problems that are the hardest to see.
Matt
adwb@community.nospam wrote:
> I believe there is a syntax error. Try this instead:
>
>
> CommandArgument='<%# DataBinder.Eval(Container.DataItem,"id")
> %>'>Remove
>
>
> On Jan 24, 2:53 pm, MattB 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:
>>
>>
>> CommandArgument='<%# DataBinder.Eval(Container.DataItem,
>> "id"%>')>Remove
>>
>> 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
>
Re: CommandArgument for a LinkButton in a repeater (.net 1.1)
am 25.01.2008 20:19:30 von MattB
Thank you!
Matt
Jignesh wrote:
> Closing brackets of Eval function is missing
>
> Regards
> JIGNESH
>
> "MattB" wrote in message
> news:5vsj72F1o8ql9U1@mid.individual.net...
>> 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:
>>
>>
>> CommandArgument='<%# DataBinder.Eval(Container.DataItem,
>> "id"%>')>Remove
>>
>> 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
>