Rex,
You can hook in your own event handler to the Repeater's itemCreated event. Inside your event handler, you can set the properties of the individual button. The idea is to load the CommandName property with some data that identifies the particular button and also to hook an event handler from the composite control into the button's Click event. Then in the click event handler, you can decide what to do based on the CommandName, which is passed into the click event handler in the EventArgs parameter.
>All,
>
>I have a composite control that renders linkbuttons from a repeater control. I need to handle the linkbutton click events at the control level.
>
>How do I do this?
>
>TIA
>
>Rex
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only