在gridview中实现删除多行时,想调用sqldatasource的delete()方法,sqldatasource的conflictdetection=compareallvalues
有如下的提示信息:
You have specified that your delete command compares all values on SqlDataSource 'SqlDataSource1',
but the dictionary passed in for values is empty. Pass in a valid dictionary for delete or change
your mode to OverwriteChanges.
当 sqldatasource的conflictdetection=overwritechages时,
就没有问题,但是这样并发操作就得不到控制。
想 sqldatasource的conflictdetection=compareallvalues 时,实现多行删除,怎样解决上面的错误提示!
有如下的提示信息:
You have specified that your delete command compares all values on SqlDataSource 'SqlDataSource1',
but the dictionary passed in for values is empty. Pass in a valid dictionary for delete or change
your mode to OverwriteChanges.
当 sqldatasource的conflictdetection=overwritechages时,
就没有问题,但是这样并发操作就得不到控制。
想 sqldatasource的conflictdetection=compareallvalues 时,实现多行删除,怎样解决上面的错误提示!
SqlDataSource内在机制的问题