I have a page with a data list and for each record I have the delete option. When I click the delete button, before executing the action it checks in a controller file which action was requested to only execute the delete code.
The flow of actions goes something like this:
Button Click = > Controller Verification = > Take Action
I tried to print a message after the code was executed, but the message is displayed on the controller page. This is not right because this page should not display anything, it is just a bridge between the request and the desired action.
To request the deletion I am using the post method. Would it be possible to have the confirmation message appear on the page where the listing exists? If so, how could it be done?