Here is an example straight from MSDN. This code applies to "ListBox, DropDownList, CheckBoxList, and RadioButtonList". I think it is what you are looking for:
' Visual Basic
Public Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim msg As String
Dim li As ListItem
msg = ""
For Each li In ListBox1.Items
If li.Selected = True Then
msg = msg & "<BR>" & li.Text & " selected."
End If
Next
Label1.Text = msg
End Sub
It is under "Determining the Selection in a List Web Server Control". This should give you a base to work from. Replace the code between the "If" statement with your code to update the fields in your database.
Hope this helps.
J
|