Hi,
How can i get this on screen ?
sql= new sqlcommand("select count(*) from datas", database123)
...
...
persons=sql.executereader()
...
...
label1.text= ????
Thanks
Hi,
How can i get this on screen ?
sql= new sqlcommand("select count(*) from datas", database123)
...
...
persons=sql.executereader()
...
...
label1.text= ????
Thanks
like this
sql= new sqlcommand("select count(*) as Count from datas", database123)
...
...
persons=sql.executereader()
...
...
label1.text= persons["Count"] ;
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.