Skip to content

C# error,how to save

Maneesh A N

Asked Nov 9, 2013, 6:46 AM EST1 answer
Share
LinkedInX
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.

  • 0
    u must initialize sqlconnection like

    ex:

     sqlconnection sqlcon;
    sqlcon=new sqlconnection("connctionstriong");

    Sqlcommand cmd=new sqlcommand();
    cmd.connection=sqlcon;    /// u r missing this step
    0