bostjank
01-02-2003, 12:22 PM
Hello!
I have pages in ASP that read from Access database. Search results are shown in HTML tables that have up to 2300 rows.
Sometimes users dont want to wait for the whole table to be displayed (because they clicked the wrong search button or for some other reason) and they click 'Stop' button in a browser (or Back or press Esc).
The result is that the process stops. But not completely. If a user clicks another on some other link or tries to do something else nothing happens for a long time (approximately so long as it would take for the whole table to be displayed).
How can I stop the process completely?
This is the script I use for reading from database:
<%
Response.Buffer = True
sConn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("......")
Set conn = Server.CreateObject("adodb.connection")
conn.open sConn,"",""
sSQL = "SELECT ..."
set rs = connn.Execute(sSQL)
Do While Not rs.EOF
...
Response.Flush
rs.MoveNext
Loop
%>
Thanks,
Bostjan :thumbsup:
I have pages in ASP that read from Access database. Search results are shown in HTML tables that have up to 2300 rows.
Sometimes users dont want to wait for the whole table to be displayed (because they clicked the wrong search button or for some other reason) and they click 'Stop' button in a browser (or Back or press Esc).
The result is that the process stops. But not completely. If a user clicks another on some other link or tries to do something else nothing happens for a long time (approximately so long as it would take for the whole table to be displayed).
How can I stop the process completely?
This is the script I use for reading from database:
<%
Response.Buffer = True
sConn = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("......")
Set conn = Server.CreateObject("adodb.connection")
conn.open sConn,"",""
sSQL = "SELECT ..."
set rs = connn.Execute(sSQL)
Do While Not rs.EOF
...
Response.Flush
rs.MoveNext
Loop
%>
Thanks,
Bostjan :thumbsup: