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

Click here to load this message in the networking platform