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

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?
 
J

John Saunders

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.
 
P

Peter

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!
 
J

John Saunders

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.
 
P

Peter

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top