S
Steven K
Hello,
I am filling a DropDownList (DropDownList1) with data from a stored
procedure. Is there an equivalent of the RecordSet.EOF to determine if
there are any records using DataBind?
Dim spDropDownList As OleDb.OleDbDataReader
Dim cmdDDL As New OleDb.OleDbCommand("sp_Search", cnnSearch)
spDropDownList = cmdDDL.ExecuteReader()
DropDownList1.DataSource = spDropDownList
DropDownList1.DataTextField = "BusinessProduct"
DropDownList1.DataTextField = "BusinessProduct"
DropDownList1.DataBind()
spDropDownList.Close() : spDropDownList = Nothing
I am filling a DropDownList (DropDownList1) with data from a stored
procedure. Is there an equivalent of the RecordSet.EOF to determine if
there are any records using DataBind?
Dim spDropDownList As OleDb.OleDbDataReader
Dim cmdDDL As New OleDb.OleDbCommand("sp_Search", cnnSearch)
spDropDownList = cmdDDL.ExecuteReader()
DropDownList1.DataSource = spDropDownList
DropDownList1.DataTextField = "BusinessProduct"
DropDownList1.DataTextField = "BusinessProduct"
DropDownList1.DataBind()
spDropDownList.Close() : spDropDownList = Nothing