[thelist] ASP.NET Adding a linkbutton programmatically
Tab Alleman
talleman at Lumpsum.com
Mon Aug 7 15:22:50 CDT 2006
sounds like you're trying to create a Server-side (.net) event handler as opposed to a client-side (JavaScript).
If that's the case, I think you shouldn't be trying to assign the click handler programmatically. You should just assign the listbox one click handler, and then INSIDE the click-handler, you should account for whatever possibilities you want to handle programmatically.
> -----Original Message-----
> From: thelist-bounces at lists.evolt.org
> [mailto:thelist-bounces at lists.evolt.org]On Behalf Of Casey Crookston
> Sent: Monday, August 07, 2006 4:09 PM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] ASP.NET Adding a linkbutton programmatically
>
>
> Tab and Peter,
>
> In my first post I said that lbAlpha.OnClick returned an
> error, which is
> not exactly true. It's just that Visual Studio did not
> provide OnClick
> as an option after typing "lbAlpha."
>
> I confess I am confused by the question you both asked: Am I adding a
> client-side or server-side event handler? I was not aware
> that I had an
> option.
>
> But, using:
>
> lbAlpha.Attributes.Add("OnClick", "lbAlpha_Click()")
>
> We never seem to actually get into lbAlpha_Click to execute the code
> within. And even if, I'm unsure how to detect the value of the
> linkbutton lbAlpha.
>
> I've been googling "asp.net Linkbutton Attributes.Add" and other such
> things without any luck. I'm not asking you to do my job for
> me - just
> a nudge in the right direction.
>
> Thanks!
>
> Casey
>
> --
>
> * * Please support the community that supports you. * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>
More information about the thelist
mailing list