Why is this value always 0?
I have searched this forums and haven't found much.
I have this code:
Where "comments" is a class module that has 4 props and some code to save to the DB. Simple really.VB Code:
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click Dim objComments As New Comment With objComments .Name = txtName.Text .Email = txtEmail.Text .TypeID = cboArea.SelectedIndex .Comment = txtComments.Text .Update() End With End Sub
Regardless of what I select in my combo the selectedindex is always 0, which means I can't get the ID value for the selected item.
I have ASP.NET Unleased and it's sample code is exactly what I have above
Woka





Reply With Quote