Tag Archives: ListBox control

How to find selected items in ListBox in asp.net

As we know that we can use ListBox control as Single select or multiple select. If use single selection mode of the control then we can find out the selected item through SelectedIndex and SelectedItemproperties. if we use Multiple selection mode of the items then how we can find out the selected items, in the following examples we are showing how we can do this: Continue reading How to find selected items in ListBox in asp.net

How to remove duplicate items from listbox in .net

 
Many times when we bind our controls from a non primary column of table then it may be a case that we got the duplicate records in our dataset. There is no sense to bind duplicate records without any identity value in any control.

With the help of the following function you can easily remove duplicate items from your Listbox control.
Continue reading How to remove duplicate items from listbox in .net

Add, remove And clear items in List Box in vb.net

This article demonstrates how to add, remove and clear items from list box in vb.net. The ListBox control contains ‘Items’ property. You can add and remove items from the list box using this property. Basically, ‘Items’ property is the type of the ‘ListBox.ObjectCollection’ Class which refers the all the items which are held in the Listbox control. Continue reading Add, remove And clear items in List Box in vb.net