Repeater / LinkButton

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Lets say I have a repeater inserts 10 linkButtons onto my page. Now when this button is clicked, how do I determine which one was clicked? Do I have to programmatically change the linkButton CommandName property using the Repeaters ItemCreated event? or is there a better way

-- Thanks.
 
Dan said:
Lets say I have a repeater inserts 10 linkButtons onto my page. Now when
this button is clicked, how do I determine which one was clicked? Do I have
to programmatically change the linkButton CommandName property using the
Repeaters ItemCreated event? or is there a better way?


You can also bind the CommandName and/or the CommandArgument property of the
buttons to some field in the datasource.

Greetings
Martin
 
Back
Top