jaklotz
May 22nd, 2006, 11:08 AM
Hi,
I'm adding linkbuttons programmatically in my codebehind file, but there doesn't seem to be a way to add a server-side click event handler. I have a master page that handles the creation of these linkbuttons, which are specified in the content page. So when one of these is clicked, I actually want to find which button was clicked in the content page. It won't even let you add a click event to the button when you dynamically create it in the master page - so how can you know which button was clicked? Also, how can you tell from the content page which button was clicked, because that's where I really need to distinguish that.
Thanks!
I'm adding linkbuttons programmatically in my codebehind file, but there doesn't seem to be a way to add a server-side click event handler. I have a master page that handles the creation of these linkbuttons, which are specified in the content page. So when one of these is clicked, I actually want to find which button was clicked in the content page. It won't even let you add a click event to the button when you dynamically create it in the master page - so how can you know which button was clicked? Also, how can you tell from the content page which button was clicked, because that's where I really need to distinguish that.
Thanks!