ExecuteReader: Connection property has not been initialized

前端 未结 7 1483
广开言路
广开言路 2021-01-01 08:29

ExecuteReader: Connection property has not been initialized.

my coding is

protected void Button2_Click(object sender,          


        
7条回答
  •  醉酒成梦
    2021-01-01 09:25

    After SqlCommand cmd=new SqlCommand ("insert into time(project,iteration)values('.... Add

    cmd.Connection = conn;
    

    Hope this help

提交回复
热议问题