|
-
May 21st, 2007, 04:25 AM
#1
Thread Starter
New Member
Data Reader
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???
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|