I have two list boxes and I have written a statement to insert the selected item into the database, that work for single items. But I cannot get it to insert ALL selected items into the SQL database. Below is my VB.NET code. I am not getting an error and it is only inserting the first selected item.
For i = 0 To ListBox1.Items.Count - 1
= True Then
'Data to be inserted
").Value = Me.ListBox1.SelectedValue
d").Value = Me.Request.QueryString("Lo
Dim ok As Integer = cmd.ExecuteNonQuery
MsgBox("Conference Room successfully updated.")