Take value from query to label in C#

前端 未结 8 1289
逝去的感伤
逝去的感伤 2021-01-26 12:48

How can i take value from query result to label?

I have two label, one is labelName and one more is labelDepartment

So when i r

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-26 13:35

    You can read content of the row(s) that query returned using DataReader class. It has methods to get single value, or you can iterate for each row. Tell me how many rows youR query returns so I can provide the exact code.

提交回复
热议问题