c# - Aspx page working in background even after browser window is closed -


i have aspx website hosted in iis server. website allows user search information , user can export details excel. once export successful email sent user link excel. observed if web browser closed within few seconds of clicking export button report generated , mail sent. happy see behaviour can tell actual reason behind this?

when user clicks export button request sent server , server process request until ends, in case in email.

even if client browser closed after button pressed request still sent , server has no idea client browser closed.

now, (with browser open throughout process) request gets sent , client waits response returns @ end of processing. makes sense when getting page tells has happened when action creates other side effects (emails example) may not seem logical have client wait. in case, consider using ajax request send request ensure rest of page can still interacted whilst request being processed.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -