这语句也能通过编译??试试下面的吧:
shbInsertData="INSERT INTO content(subject,No,promulgator,Proposal, content,re,proposal,autograph,incept,copy,level) Values('"+ txtsubject.Value +"','" + txtNo.Value +"','" + txtpromulgator.Value +"','" + txtproposal.Value +"','" + txtcontent.Value +"','" + txtre.Value +"','" + txtautograph.Value +"','" + txtincept.Value +"','" + txtcopy.Value +"','" + txtlevel.Value +"')";

解决方案 »

  1.   

    检查shbInsertData里的值,SQL语句肯定没拼好
      

  2.   

    单步调试,看你的sql语句是什么
      

  3.   

    把shbInsertData显示出来,直接拿到数据库中试,容易找到原因
      

  4.   

    Response.Write(shbInsertData);
    然后放到查询分析器种运行。
      

  5.   

    跟踪shbComm的CommandText属性,帖到sql查询分析器里看看
      

  6.   

    这样就行了
    shbInsertData="INSERT INTO content(subject,No,promulgator,Proposal, content,re,proposal,autograph,incept,copy,level) Values('"+ txtsubject.Value .ToString()+"','" + txtNo.Value.ToString() +"','" + txtpromulgator.Value.ToString()  +"','" + txtproposal.Value.ToString()  +"','" + txtcontent.Value.ToString()  +"','" + txtre.Value.ToString()  +"','" + txtautograph.Value.ToString()  +"','" + txtincept.Value.ToString()  +"','" + txtcopy.Value.ToString()  +"','" + txtlevel.Value.ToString()  +"')";
      

  7.   

    Response.Write()出来.然后到查询分析器里慢慢找问题,,我是看不出来了..
      

  8.   

    晕倒,谁教你这样写!  这样写有漏洞! 呵呵..
    用  @xxx  做参数,赋值!呵呵..