Get Multiple selected Items from Listbox in asp.net

Get Multiple selected Items from Listbox in asp.net

 

 

Code snippet:

 

        Dim index() As Integer = Listbox1.GetSelectedIndices()

        For Each i In index

            MsgBox(Listbox1.Items(i).Value)

        Next