View Single Post
  #2 (permalink)  
Old July 9th, 2007, 09:13 PM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Yup, it's that simple.

Something along these lines:

myDataReader = myCommand.ExecuteReader()
someTextBox.Text = myDataReader("someFieldName").ToString()
...
myDataReader.Close()

-Peter