Posted on 2006-04-18
I want to retrieve multiple fields of data from my access db, but I don't want to use a datagrid or repeater. The data that I will be accessing will only be one record that matches the select criteria. I'm not sure how to do this. Please help.
Here's my code bound to a datagrid:
objCmd = New OleDbCommand("SELECT * FROM Content WHERE ministryID=5", objConn)
objRdr = objCmd.ExecuteReader()
dgcontent.DataSource = objRdr
I also need to know how to display this in the body. I'm using asp.net v1.1, VB.NET.