SqlCommand commd = new SqlCommand("update student set Name='"+TextBox2 .Text +" ' where studentID="+ Convert.ToInt32 (TextBox1 .Text) , connection); 
加了两个单引号..还有where前加了个空格