i have the following code....
it gives the error::ExecuteR eader: Connection property has not been initialized
can anyone please help me
it gives the error::ExecuteR eader: Connection property has not been initialized
can anyone please help me
Code:
sst = new DataSet();
asq = new OleDbCommand("select family_id from family where WHERE family_code = '" + Session["xx"].ToString() + "' ",con);
//asq.Connection = con;
asq1 = asq.ExecuteReader();
while(asq1.Read())
{
sst.ExtendedProperties["id"]= asq1[0].ToString();
}
asq1.Close();
//return sst;
Label19.Text = sst.ToString();
Comment