Error : “Fill: SelectCommand.Connection property has not been initialized.”

后端 未结 4 1638
鱼传尺愫
鱼传尺愫 2021-02-07 04:58

im getting this error while trying to connect a mysql database to an editor, here is the code behind:

protected void Button1_Click(object sender, EventArgs e)
{
         


        
4条回答
  •  孤独总比滥情好
    2021-02-07 05:34

    I got also this problem. after search the problem found that the object of connection that i have provide SqlDataAdapter is not Initialize so the connection passed as null

提交回复
热议问题