ASP.NET (3.5) allows users to run complex queries, which can take up to 4 minutes, to return results.
When I make long loops of code, I sometimes check Response.IsClientConnected() to end the page if the user closes his browser or clicks the stop button.
But when I query SQL Server, my .NET code blocks when I call GetDataReader() .
Is there an easy way to do GetDataReader () asynchronously, so I can wait, but still check, say, every 5-10 seconds to find out if the user is all connected and instruct the database request, ve left?
Or is there another alternative that I don't think about?
richttallent
source share