Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieving ADODB.Recordset Asynchronously

Status
Not open for further replies.

Lammers

Programmer
Sep 5, 2001
12
0
0
HK
I know from VB (and via the MSDN library) that you can retrieve ADODB.Recordset asynchronously via the properties and using adUseClient and adAsynchFetch.
Having done various test .asp files, I can only assume that it's not possible in ASP? Is this right?

If so, has anyone come up with a nice solution to users who keep pressing the SUBMIT button on a web page whilst a query is occurring?

The best it seems is to use response.isClientConnected, but this is after the fact. That is, only after the query is completed. Is there a way to stop a query, once it has started in ASP?



Peter.

 
Well, if you're just worried about someone clicking the button twice, you could disable the button once it's been clicked.

<script language=javascript>
var clicked = false;

function submitMe(){
if (!(clicked)){
clicked = false;
return true;
}
return false;
}
</script>

<form name=theForm method=post action=somePage.asp onSubmit=&quot;return submitMe();&quot;>

:)
paul
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top