fckeditor的数据库中插入
我写了一个脚本插入到Access数据库的fckeditor的值。我碰到下面的语法错误:
我插入一般网页源码都没问题,偶然间插入一个表时出现以下错误
//错误
语法错误 (操作符丢失) 在查询表达式 ''<table cellspacing="2" cellpadding="0" border="0" align="center" width="90%" id="table1">
<tbody>
<tr>
<td height="50" align="right" width="56"><img src="http://www.flblx.com/pic/ico_q.gif" alt="" /></td>
<td width' 中。
// 我的代码
protected void btn_about_Click(object sender, EventArgs e)
{
OleDbConnection cn = Class1.DBconnection();
string content = FCKeditor1.Value.ToString();
cn.Open();
OleDbCommand cmd = new OleDbCommand("update News set newsContent= '" + content + "' where ID="+id, cn);
cmd.ExecuteNonQuery();
Response.Write("<script language='javascript'>alert('保存成功!');</script>");
}