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"] ;

Thank you campkev, you are my best friend now :mrgreen:

Tahnks very very much

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.