I have a repeater control, within my itemtemplate is a checkbox.
Is there anyway I can trap its CheckChanged event, it doesn't show up in the page class.
I know how to get to it using findcontrol but can I add a handler to it?
Thanks
Printable View
I have a repeater control, within my itemtemplate is a checkbox.
Is there anyway I can trap its CheckChanged event, it doesn't show up in the page class.
I know how to get to it using findcontrol but can I add a handler to it?
Thanks
What you want is the ItemCommand event.
Set the checkbox's AutoPostBack property to true. Give it a CommandArgument. You should be able to capture it in the ItemCommand event of the repeater then.