requested89
IS-IT--Management
How do I get a single value from the below record set. I don't care if I get it from the datatable or dataset or even if a nice flying Stork comes and drops it in my backgarden I just want to be able to get the value of the field imageName from the database.
Thanks in advance this is really annoying me.
Chris
Code:
oConn = New OleDbConnection(ConfigurationSettings.AppSettings("DBConnString_Cav"))
queryString = "SELECT imageName FROM contentTable WHERE "& menuCol &" = "& contentID &" ORDER BY contentID DESC"
oContentRS = New OleDbDataAdapter(queryString, oConn)
oContentRS.Fill(oContentDS,"ContentDS")
ContentDT = New DataTable
ContentDT = oContentDS.Tables(0)
ContentDT_numrows = ContentDT.Rows.Count
cntRpt.datasource = oContentDS
cntRpt.databind()
Thanks in advance this is really annoying me.
Chris