jeffcullina
Programmer
At the start of my ASP, I open a connection and then open a recordset from a database. Can I close the connection and keep the recordset open so I can draw from it in later client-side vbscript? I would like to run queries on the recordset when the user presses a button on the page. Alternatively, can I copy the information from the recordset into some other recordset or array variable that I can use in my client side code. The two server-side code at the top of the page would look something like this:
<%
'Open connection
'Open recordset
sampleRS.Open "SELECT Num FROM tblSample;" , conn
'Close connection
%>
I need help replacing the comments in the client side code below:
<script language="vbscript">
function UpdateNum()
'Run some query on sampleRS.
'For example: "SELECT Num FROM sampleRS WHERE Num<10"
end function
</script>
<%
'Open connection
'Open recordset
sampleRS.Open "SELECT Num FROM tblSample;" , conn
'Close connection
%>
I need help replacing the comments in the client side code below:
<script language="vbscript">
function UpdateNum()
'Run some query on sampleRS.
'For example: "SELECT Num FROM sampleRS WHERE Num<10"
end function
</script>