Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LinkButtons in Repeaters
Message
From
13/07/2004 15:28:27
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
18/06/2004 10:27:01
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00915024
Message ID:
00923933
Views:
19
Keith,

Thanks, I understood that you set the LinkButton.CommandName property to something and when the user clicks on the button the Repeater.ItemCommand event fires. In this event, you decide which button was clicked using the LinkButton.CommandName property and fire the appropriate method is response. I did not see anywhere where the Repeater was hooked to the LinkButton Click event.

Do you have an example of this?

TIA

Rex

>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
Reply
Map
View

Click here to load this message in the networking platform