Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Datagrid delete button in asp net
after adding a delete button to a datagrid in a asp net website, i want to know how to enable deleting a record of database table using this button. this is the error message after clicking that button:
Deleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Deleting is not supported by data source 'SqlDataSource1' unless DeleteCommand is specified.
how can i specify delete command? is this a good way to delete a database record? what do you usually do? i prefer old style tables and links. like what i do in php.
0 · ·