R
Rick
I have been trying to get this dropdownlist to run and I am having nothing
but errors. Anyone know what I am doing wrong?
Any help would be much appreciated!!!
Here is my code.
<script runat="server">
Public Sub Page_Load(sender as Object, e as EventArgs)
Dim conClsf As OleDbConnection
Dim cmdMbrs As OleDbCommand
Dim rdrMbrs As OleDbDataReader
Dim State as String
conClsf = New OleDbConnection( _
"Provider=SQLOLEDB;" & _
"Server=192.168.1.3,2284;" & _
"Database=DataBase;" & _
"Uid=UserID;" & _
"Pwd=xxxxxxx" )
conClsf.Open
cmdMbrs = New OleDbCommand( _
" select DISTINCT State, FullState from jH where state = '" &
state & "'", _
conClsf)
state.DataSource = cmdMbrs.ExecuteReader()
state.DataTextField = "FullState"
state.DataValueField = "State"
state.DataBind()
state.DataSource.Close
End Sub
</script>
HTML stuff......
<asp
ropDownList DataTextField="FullState" DataValueField="State" ID=state
runat="server" />
but errors. Anyone know what I am doing wrong?
Any help would be much appreciated!!!
Here is my code.
<script runat="server">
Public Sub Page_Load(sender as Object, e as EventArgs)
Dim conClsf As OleDbConnection
Dim cmdMbrs As OleDbCommand
Dim rdrMbrs As OleDbDataReader
Dim State as String
conClsf = New OleDbConnection( _
"Provider=SQLOLEDB;" & _
"Server=192.168.1.3,2284;" & _
"Database=DataBase;" & _
"Uid=UserID;" & _
"Pwd=xxxxxxx" )
conClsf.Open
cmdMbrs = New OleDbCommand( _
" select DISTINCT State, FullState from jH where state = '" &
state & "'", _
conClsf)
state.DataSource = cmdMbrs.ExecuteReader()
state.DataTextField = "FullState"
state.DataValueField = "State"
state.DataBind()
state.DataSource.Close
End Sub
</script>
HTML stuff......
<asp

runat="server" />