ASP.NET(获取数据成功,点击修改数据提示操作符丢失ID=!!!!)哪有问题?代码如下

2025-05-05 22:32:43
推荐回答(1个)
回答1:

id值内容不正确。应是数字类型,试一下改为:

str_sqli = "update _news set title='" + _text1 + "',keywords='" + _text2 + "',description='" + _text3 + "',content='" + _content + "' where id=" + Convert.ToInt32(_text);