|
-
Jan 27th, 2012, 09:57 AM
#1
Thread Starter
Addicted Member
How to get data from a LINQ to SQL object
I have the following line of code:
Dim clients = From client In db.clients
Select client
Where client.ClientID = id
In debugging, the clients object populates perfectly, but how can get get data from the clients object? Like if the clients object has a FirstName property, how can I set a textboxes text property to that property from the clients object?
I thought it'd be something like:
tbClientFirstName.Text = clients.FirstName
But that doesn't work.
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
|