Does ASP.NET continue reliably processing a request even after a user is navigated away via javascript?

前端 未结 3 1083
我在风中等你
我在风中等你 2021-01-05 05:52

Environment:

  • Windows Server 2003 - IIS 6.x
  • ASP.NET 3.5 (C#)
  • IE 7,8,9
  • FF (whatever the latest 10 versions are)
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-05 06:30

    How about don't do the async operation on an ASP.NET thread at all? Let the ASP.NET code call a service to queue the data search, then return to the browser with a token from the service, where it will then redirect to the result page that awaits the completed result? The result page will poll using the token from the service.

    That way, you won't have to worry about whether or not ASP.NET will somehow learn that the browser has moved to a different page.

提交回复
热议问题