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) {
Try This
MySqlCommand cmd = new MySqlCommand("SELECT tes FROM ins",conn);
or
MySqlCommand cmd = new MySqlCommand("SELECT tes FROM ins"); cmd.Connection=conn;