Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LinkButtons in Repeaters
Message
De
13/07/2004 15:28:27
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
 
 
À
18/06/2004 10:27:01
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00915024
Message ID:
00923933
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform