• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 241
  • Last Modified:

Listview with multiple select linkbuttons

Is it possible to have two linkbuttons on a listview row with a Command Name of Select? And if so, how do I determine which one was clicked in the SelectedIndexChanged event? I need to be able to run a query using the data in either button.   I tried using the ID but the name changes at runtime.
1 Solution
Easwaran ParamasivamCommented:
In Listview_ItemCommand you can identify which button was clicked.

http://weblogs.asp.net/jeffwids/archive/2009/12/08/handle-the-button-click-event-from-an-asp-net-listview-control.aspx contains example.
EDCTECHAuthor Commented:
Got it. Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now