You aren't showing us the line that has the error in the context of the other code, or the appropriate methods in your C# code behind, so we can't be specific.
But the error is pretty explicit:
'ASP.customerregister_aspx' does not contain a definition for 'btnDeleteRecords_Click' and no extension method 'btnDeleteRecords_Click' accepting a first argument of type 'ASP.customerregister_aspx' could be found
You have two lines of code with similar structure, one uses
btnDeleteRecords_Click
and the other
btnDeleteRecord_Click
- are you sure that one of them isn't misspelled?