c# error,how to save
error found:ExecuteReader: Connection property has not been initialized.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abdu RafeeqPosted Nov 10, 2013, 8:22 PM
ex:
sqlconnection sqlcon;
sqlcon=new sqlconnection("connctionstriong");
Sqlcommand cmd=new sqlcommand();
cmd.connection=sqlcon; /// u r missing this step