Hello All!

Having a problem with assigning the data reader to the field which I want to do. I know how this is done in VB.NET but how does this work in C# syntax code?

VB.NET

DR = Command.ExecuteReader

While DR.Read

txtFirstName.Text = (DR! FirstName)

End While


Now when I try this in C# code I have all sorts of problems:

C#

DR = Command.ExecuteReader();

while (DR.Read())
{
txtFirstName.Text = (DR! FirstName); < Problems Here?
}


Any ideas???