简体   繁体   中英

Moving items between multiple ListBox controls

I have a form where a user can enter the number of students that will be attending a course. Based on how many students will be attending, they are divided into groups. For example, if 80 students will be attending the course and each group has 20 students, there would be 4 groups with 20 students each.

Once the students have been put into groups, each group will be displayed in a ListBox . We need to be able to move students from one group ( ListBox ) to another, and the user should be prompted to confirm before a move is committed.

Can someone help to point me in the right direction?

As it's a website and your criteria (for the amount of listboxes to be displayed) are entered on the clientside I would solve this using client side javascript.

Or use a repeater control based on a textbox that does a postback when the value is changed if you want to do this server side.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM