Click here to Skip to main content
15,881,938 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am taking the count of table columns so the result is 6 how do send this int to the c# wpf to a textbox or a label is there any way??

What I have tried:

SELECT count(*)
from IssuedBooksTbl
where IssuedBy='user'
Posted
Updated 16-May-21 10:08am
v3
Comments
RedDk 16-May-21 14:10pm    
Dear Doctor Dakelbab,

Obviously, you're going to h a v e to find some C# coding examples (of ALL KINDS) and follow the example of coding in each in order to do any developing ... using WPF ... using whatever.
Omar Dakelbab 16-May-21 14:27pm    
Thanks for your kind words have a nice day! :)
Omar Dakelbab 16-May-21 14:27pm    
Doctor Dk

1 solution

That's referred to as a "scalar" query.

Obtaining a Single Value from a Database - ADO.NET | Microsoft Docs[^]

You put the result in the .Text property of a TextBlock, for example.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900