How long will the iis thread live after you close a page?

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

hi,all:
I just made a simple web project that I want to insert 10000 rows data to
sqlserver one by one,it would take a long time to complete, during
inserting, i closed the web page that made the inserting,and looked up the
sqlserver event logger, but the inserting is still going, it took serveral
minutes to complete, but the rows inserted does not reach 10000.

i want to know How long the iis thread will live after you close the page?
is it session problem? if it is, and the session is valid , the rest of
rows will insert to db?
 
Peter said:
hi,all:
I just made a simple web project that I want to insert 10000 rows data to
sqlserver one by one,it would take a long time to complete, during
inserting, i closed the web page that made the inserting,and looked up the
sqlserver event logger, but the inserting is still going, it took serveral
minutes to complete, but the rows inserted does not reach 10000.

i want to know How long the iis thread will live after you close the page?
is it session problem? if it is, and the session is valid , the rest of
rows will insert to db?

Closing the web page is a client-side action. It has no effect at all on the
server.
 
John Saunders said:
Closing the web page is a client-side action. It has no effect at all on the
server.
but in debug mode, if you close the web page , the program exit
immediately,if it is just the client action,why a method will exit while not
completing?

thanks in advance!
 
Peter said:
but in debug mode, if you close the web page , the program exit
immediately,if it is just the client action,why a method will exit while not
completing?

In debug mode, the debugger is attached both to the aspnet_wp process and to
your browser process. When you exit the browser, the debugger knows.
 
thank you so much
John Saunders said:
In debug mode, the debugger is attached both to the aspnet_wp process and to
your browser process. When you exit the browser, the debugger knows.
 
Back
Top