visual studio 2005的textbox中没有datatextfield和datavaluefile,应该如何显示数据库内一个字段中的一个内容?
------解决方案--------------------------------------------------------
con.Open()
Dim cmd As New SqlCommand( "select detailfood from food where foodnum= " + foodID + " ", con)
Dim sdr As SqlDataReader
sdr = cmd.ExecuteReader
txt.text=sdr[ "detailfood "].ToString() //注意这里,必须是某个字段的绑定