除非指定了UpdateCommand,否则数据源'SqlDataSource1'不支持更新. [英] Updating is not supported by data source 'SqlDataSource1' unless UpdateCommand is specified.

查看:733
本文介绍了除非指定了UpdateCommand,否则数据源'SqlDataSource1'不支持更新.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Updating is not supported by data source 'SqlDataSource1' unless UpdateCommand is specified. i got this error upding event sir help me any one 

推荐答案

听起来您没有指定要使用的更新命令-将UpdateCommand属性设置为您要使用的SQL或存储过程的名称,然后在调用更新方法之前设置UpdateCommandType.
It sounds like you are not specifying what update command to use - set the UpdateCommand property to the SQL you wish to use or the name of the stored procedure, then set the UpdateCommandType before calling the update method.


这篇关于除非指定了UpdateCommand,否则数据源'SqlDataSource1'不支持更新.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆