c# - How can I Output this code to a 'label' box -


can output code/query label box? or there way output code on label box?

        sqlconnection conn3 = new sqlconnection(connstring);         conn3.open();         string query2 = "select company_id jo.dbo.comp right join jo.dbo.proj on comp.company_id = proj.company_id";         sqlcommand getid = new sqlcommand(query2, conn3);         getid.executenonquery();         conn.close(); 

you need use executereader() instead of executenonquery() , read results label.

http://msdn.microsoft.com/en-us/library/9kcbe65k.aspx


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -