DataList梆定SqlDataSource UPDATE后没反应也不报错,帮帮忙啊~~~

来源:百度知道 编辑:UC知道 时间:2024/07/07 11:13:04
UpdateCommand="Update [titles] Set [title_id]=@title_id,[type]=@type,[pub_id]=@pub_id,[price]=@price Where [title]=@title"

update后数据还是没变,又不报错.是什么问题啊

1你的那些参数有赋值吗?
2你用的是 SqlDataAdapter.Update()方法吗?
有使用SqlCommandBuilder 的GetUpdateCommand()...GetInsertCommand()...
方法吗?
3写完代码后 有使用
SqlCommand 的 Execute*? 方法吗?

光拿个SQL语句 没有谁能准确判断你出什么错啊.

可能是 [title]=@title
类型的问题

还有 参数都负值了么