0
votes

In .NET there doesn't seem to be a property to find the item just selected in a multi-select listbox; SelectedIndex always shows the first selected item. From memory VB6 had the ListIndex property that changed accordingly... Why remove a useful property ?!

Duplicate: How to get the last selected item in multiselect ListBox?

2
Voted to close: "exact duplicate". Please see: stackoverflow.com/questions/305555/…. - Andrew Hare

2 Answers

1
votes

Create your own listbox that enherits from listbox and overrride the onclick?

1
votes

Could you not create a hidden field and copy the value selected each time on a click event into that field. That should always contain the last item selected by the client.