Within my web application, I have a specific button that triggers an AJAX call upon being clicked. On the server side, I need to run a query against a database.
I am concerned about the execution time of these queries and worry that users may be impatient and wish to stop the process mid-way. Is there a way for me to incorporate an additional button that can halt the current AJAX call and query execution? And would this be a secure method to implement?
The technologies I am working with include AngularJS on the frontend and C# on the backend.