System.Data.SqlClient.SqlException: 第 1 行: '=' 附近有语法错误
private void btnSubmit_Click(object sender, System.EventArgs e)
{
string strConn="server=localhost;uid='sa';pwd='111';database=User";
SqlConnection conn = new SqlConnection(strConn);
conn.Open();
string strSql = "insert into UserInof values ('"+txtName.Text+"','"+txtPwd.Text+"','"+txtMail.Text+"')";
SqlCommand myCommand = new SqlCommand(strConn, conn);
myCommand.ExecuteNonQuery();
}