This tutorial will allow you to move data from one list box to another, as well as remove them again – either one by one, or altogether. Also, you can choose to allow duplicates or not, as well as output the chosen selection. VB version.

We need a Web User Control, which will have two list boxes, and four buttons: Add All, Add One, Delete One (from Selection List), and also Delete One (from Source List).

Now we add code to the controls:

Add the ListPicker Control onto an ASPX page and add a text box and button to allow user to add to the source list, a button to allow population of source list with list of files in the directory, a button to clear both list boxes, an Allow Duplicates check box, and a button & label to output the current selection:

ASPX code for these buttons should look something like this:

Download Source Files