J
jm
I do not want to use the datagrid, datalist, etc. I want to retrieve
simply the value from the query.
I know the sql is returning data, because, if I use a grid, I can
populate it.
I have looked everywhere, but it won't work.
Dim resultsDataSet as New DataSet()
Dim myDataAdapter as odbcdataadapter
myDataAdapter = New odbcdataadapter(sqlLastID, conn)
'this works fine here
myDataAdapter.Fill(resultsDataSet)
order_id_grid.DataSource = resultsDataSet
order_id_grid.DataBind()
'this does not
temp = resultsDataSet.tables(0).rows("order_id").toString()
it complains that:
Input string was not in a correct format.
Thank you for any help. I cannot find the answer. The returning
value from the database is an integer. I have tried it with temp as a
string and an integer. Thanks again.
simply the value from the query.
I know the sql is returning data, because, if I use a grid, I can
populate it.
I have looked everywhere, but it won't work.
Dim resultsDataSet as New DataSet()
Dim myDataAdapter as odbcdataadapter
myDataAdapter = New odbcdataadapter(sqlLastID, conn)
'this works fine here
myDataAdapter.Fill(resultsDataSet)
order_id_grid.DataSource = resultsDataSet
order_id_grid.DataBind()
'this does not
temp = resultsDataSet.tables(0).rows("order_id").toString()
it complains that:
Input string was not in a correct format.
Thank you for any help. I cannot find the answer. The returning
value from the database is an integer. I have tried it with temp as a
string and an integer. Thanks again.