I'm getting an error and I can't understand why is this happening...
I have an stored procedure which receives a parameter to delete the database row corresponding to that key-parameter. In the GridView_RowCommand I'm setting up the datasource in the e.CommandName == "Delete" option
this.SqlDataSourceGridView.DeleteCommandType = SqlDataSourceCommandType.StoredProcedure;
this.SqlDataSourceGridView.DeleteCommand = "spDeleteGridView";
Then in the GridView_RowDeleting event, I'm preparing datasourceDeleteParameters with the Key that I want to delete in my database and call the
this.SqlDataSourceGridView.Delete ( );
The row is deleted in the database but, and here is the problem, there is something that before it got error and throws me that:
El procedure or funcion 'spDeleteGridView' waits the parameter '@PARAM', that what not expected.
I must add the information that debugging GridView_RowDeleting it ends normally and calls the GridView_RowDeleted...
View Complete Post