Frontend is HTML, backend is C#, this is asp.net.
In frontend I have multiple "Delete" buttons but they have different ids, like "Delete-1", "Delete-2", etc.
In the backend I have an OnPostDelete() that does an API request, which needs the id number (the 1 and the 2) to identify what to delete.
So how do I detect which delete button was pressed, to delete the corresponding thing?