I am trying to get value from listview to insert into a database. However I can't seem to grab the value. It says subitems is not a member of system.web.ui.webcontrols.listviewitem.
Here is what I am attempting.
Dodge20
Here is what I am attempting.
Code:
For Each lvItem As ListViewItem In ListView1.Items
strSQL = "INSERT INTO table (col1, col2) Values (" & _
"'" & lvItem.SubItems(1).Text & "', " & _
"'" & lvItem.SubItems(2).Text & "' )"
Next
Dodge20