Hi there,
If you are setting the Text property of the Label directly, there is no need to use DataBind.
This should work as well:
Code:
lblNameTwo.Text = objDataSet.Tables(0).Rows(0)("abstractAuthor").ToString()
(assuming that objDataSet contains at least one valid DataRow.
You can also get the first row of the DataSet, cast it to a DataRow and use that for simple binding. IMO, this makes your code a bit easier to read:
Code:
Dim objDataRow As DataRow = CType(objDataSet.Tables("MyTable").Rows(0), DataRow)
lblNameTwo.Text = objDataRow("MyTable").ToString()
HtH
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.