if(dataReader.hasrows) { while(dataReader.Read()) { //YOUR CODE EX: textBox1.text=dataReader.getString(0); ... . . . . } }
while(Datareaderobj.Read) { Your Code ; }