帮我解决这个错误
问题描述:
数据源'SqlDataSource1'不支持更新,除非指定了UpdateCommand......(错误)
i想添加编辑,更新,删除gridview中的选项
"Updating is not supported by data source 'SqlDataSource1' unless UpdateCommand is specified"......(error)
i want to add edit,update,delete option in gridview
答
参考此链接..
1)数据源'SqlDataSource1'不支持更新,除非指定了UpdateCommand
2 )数据源不支持更新/插入
3)除非在asp.net中指定了UpdateCommand,否则数据源'SqlDataSource1'不支持更新。
Refer this links..
1)Updating is not supported by data source 'SqlDataSource1' unless UpdateCommand is specified
2)Updating/Inserting is not supported by data source
3)Updating is not supported by data source 'SqlDataSource1' unless UpdateCommand is specified in asp.net.
错误消息非常具体:您还没有设置UPD ATE命令进入UpdateCommand属性。
https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.updatecommand(v = vs.110)的.aspx [ ^ ]
The error message is pretty specific: you haven't set an UPDATE command into the UpdateCommand property.
https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.updatecommand(v=vs.110).aspx[^]