I'm using the accordion Ajax control. For each Accordion pane I have text and a Button dynamically created. When the user fires the click event I want to know what button in which pane was fired. So I want to handle the button's click event in a way that I can send the ID (probably by event args) to the event handler in order for the handler to know what to do according to the button that was pressed.
I know I have to do something like this:
AddHandler bGetSessionMembers.Click, AddressOf bGetSessionMembers_click
but I whanted to do something like this:
AddHandler bGetSessionMembers.Click, AddressOf bGetSessionMembers_click(Me, "My ID")
I think you can do that in C#
bGetSessionMembers.Click += bGetSessionMembers_click(Me, "My ID")
or even in C# but with anonimous delegates.
Does anyone have a clue?