How to get the latest selected value from a checkbox list?
问题 I am currently facing a problem. How to get the latest selected value from a asp.net checkbox list? From looping through the Items of a checkbox list, I can get the highest selected index and its value, but it is not expected that the user will select the checkbox sequentially from lower to higher index. So, how to handle that? Is there any event capturing system that will help me to identify the exact list item which generates the event? 回答1: If I understood it right, this is the code I'd