加数据时操作符丢失问题,,请帮忙!!
我做了一个数据增加页面,代码基本是这样,
string sContent = Request.Form("d_content")
...
string sql1 = "insert into news(title,content,typeid,Picture) values('" + sTitle + "','" + sContent + "','" + List.SelectedItem.Value + "','" + sPicture + "')";
executesql(sql1)
加一般数据时正常,但在加含有html格式的数据时有时出现“操作符丢失在
<P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN style="FONT-SIZE: 18pt;
FONT-FAMILY: 黑体; mso-ascii-font-family: 'Times New Roman'......”
怎么办???