M
MGRideout
Hello I have the following dropdown list...
Public Sub DisplayCity()
Dim objDBConn As New SqlConnection
Dim objDataView2 As New DataView
Dim objCity As New clsDBCity
objDataView2 = objCity.GetCities
ddlCity.DataSource = objDataView2
ddlCity.DataBind()
objDBConn.Close()
End Sub
Where objDataView2 is a SELECT statment from a SQL DB. So the DDL displays
the cities correctly and I can choose them no problem. The problem starts
when choose a city that is 3 or 4 down in the list and click submit on my
form (which writes to a DB table), the first city in the DDL is writtern to
the DB , NOT THE ONE I selected...
Please any ideas on this...
Thanks in advance!!
Mark
Public Sub DisplayCity()
Dim objDBConn As New SqlConnection
Dim objDataView2 As New DataView
Dim objCity As New clsDBCity
objDataView2 = objCity.GetCities
ddlCity.DataSource = objDataView2
ddlCity.DataBind()
objDBConn.Close()
End Sub
Where objDataView2 is a SELECT statment from a SQL DB. So the DDL displays
the cities correctly and I can choose them no problem. The problem starts
when choose a city that is 3 or 4 down in the list and click submit on my
form (which writes to a DB table), the first city in the DDL is writtern to
the DB , NOT THE ONE I selected...
Please any ideas on this...
Thanks in advance!!
Mark