We can create only one option in ListBox control by default, but we can make this control as multiple select with the help of SelectionMode property. SelectionMode property enable us to select more than one items in the ListBox control. Continue reading “Create Multiple select Listbox in asp.net”
Tag: 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”
AutoPostBack property of ListBox in asp.net
If we set AutoPostBack property of the ListBox to True, then form containing Listbox is submitted automatically whenever a new item is selected. Continue reading “AutoPostBack property of 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”
Drag and drop operation between two Listbox using vb.net
The following example demonstrates how to perform a drag and drop operation between two listbox controls in vb.net
Continue reading “Drag and drop operation between two Listbox using vb.net”
Add textbox value to a list box by clicking a button in vb.net
Following example describe to add textbox value to a list box by clicking a button in vb.net
Continue reading “Add textbox value to a list box by clicking a button in vb.net”
Drag and drop from listbox to textbox in vb.net
Following example shows drag and drop functionality between Listbox and Textbox using vb.net
Continue reading “Drag and drop from listbox to textbox in vb.net”