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

后端 未结 4 1648
鱼传尺愫
鱼传尺愫 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:21

    Had this same error and simply just forgot the connection in the SQL string as mentioned above. Just needed to add con after the comma.

提交回复
热议问题