C# error,how to save
error found:ExecuteReader: Connection property has not been initialized.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Abdu RafeeqRank #2,298 · 609 pointsPosted Nov 10, 2013, 3:22 PM EST
ex:
sqlconnection sqlcon;
sqlcon=new sqlconnection("connctionstriong");
Sqlcommand cmd=new sqlcommand();
cmd.connection=sqlcon; /// u r missing this step