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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top