If my Vb.net or c# web application calls a stored procedure that returns data to the web page but in the middle of the stored procedure process the browser is closed.
What happens to the data that the stored procedure returned because the code that called it is no longer there?
If you have a Vb.Net or C# web application, that the code is not “inside” in the browser. The browser is just the client side.
The server side runs the code.
The SP will finish, even if you had any transaction in it, and no errors in the SP itself it will be commited.
The request was already sent from the client to the server, so it will be processed.
To see it, I would recommend you to use IIS and Attach to Process otption of Visual Studio.
Whit this you can see what is happening if you close your client side.