Solved

Listview with multiple select linkbuttons

Posted on 2011-09-14
2
212 Views
Last Modified: 2012-05-12
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.
0
Comment
Question by:EDCTECH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
ID: 36540776
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.
0
 

Author Closing Comment

by:EDCTECH
ID: 36544408
Got it. Thank you!
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question