Qus:    In an ASP.NET WebMethod, what happens when an ajax call is made to that method which executes an SQL query and the user closes the browser before the query has finished? Does the query continue or is it aborted?
Apr 16, 2021 11:26 1 Answers Views: 373 RITA
Prev Next
Answers (1)
SHIVA Apr 17, 2021 10:57
Answer:   The query continues but by the time the query finishes execution and the web server returns a response to the HTTP pipeline so as to have it return the response to the client, the client is no longer there because it terminated the connection, so the client never sees it.
However, the query completes and the rest of the Web handler or action completes. I made a video to demonstrate this.

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.

Let`s Connect