这语句也能通过编译??试试下面的吧:
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 +"')";
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 +"')";
然后放到查询分析器种运行。
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() +"')";
用 @xxx 做参数,赋值!呵呵..