string strSqlschool = "insert into tblschool(schoolid,schoolname,school_introduce,schoolkind,schooltype,schooladdress,schoolpostalcode,schooltel,schoolmaster,schoolinitiator,schoolSEC,Email,website,gradenum,classnum,teachernum,stunum) Values ('"  
                + textBox1.Text + "', '" 
                + textBox2.Text + "', '" 
                + textBox15.Text + "','" 
                + comboBox2.SelectedItem + "', '"
                + comboBox1.SelectedItem + "', '"
                + textBox5.Text + "', '"
                + textBox3.Text + "', '"
                + textBox6.Text + "', '"
                + textBox4.Text + "', '"
                + textBox7.Text + "', '"
                + textBox8.Text + "', '"
                + textBox14.Text + "', '"
                + textBox13.Text + "', '"
                + textBox9.Text + "', '"
                + textBox10.Text + "', '"
                + textBox11.Text + "', '" 
                + textBox12.Text + "')";//录入学校信息

解决方案 »

  1.   

    string strSqlschool = "insert into tblschool(schoolid,schoolname,school_introduce,schoolkind,schooltype,schooladdress,schoolpostalcode,schooltel,schoolmaster,schoolinitiator,schoolSEC,Email,website,gradenum,classnum,teachernum,stunum) Values ('"   
      + textBox1.Text + "', '"  
      + textBox2.Text + "', '"  
      + textBox15.Text + "','"  
      + comboBox2.SelectedItem + "', '"
      + comboBox1.SelectedItem + "', '"
      + textBox5.Text + "', '"
      + textBox3.Text + "', '"
      + textBox6.Text + "', '"
      + textBox4.Text + "', '"
      + textBox7.Text + "', '"
      + textBox8.Text + "', '"
      + textBox14.Text + "', '"
      + textBox13.Text + "', '"
      + textBox9.Text + "', '"
      + textBox10.Text + "', '"
      + textBox11.Text + "', '"  
      + textBox12.Text + "')";//录入学校信息