question

technette avatar image
technette asked

LINQ trying to display ID on page load

I am using the context and trying to write the ID to string but get errors everytime I try to modify by saying write the value to string.

How should I correctly write the following so that the next available displays in a text box on page load?

This particular ID is autogenerate.

employee.employee_id = txtRecordNum.Text
linq-to-sql
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Matt Whitfield avatar image Matt Whitfield ♦♦ commented ·
You will need to provide quite a bit more description / code than that to get a sensible answer, I feel.
0 Likes 0 ·

1 Answer

·
David Wimbush avatar image
David Wimbush answered

If you want to display the employee_id on the page, shouldn't that be txtRecordNum.Text = employee.employee_id?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.