Hi,
I need a little help on ASP and Recordset.
I have a query in my ASP page to select few data items from the company table (SQL 2000 database), and I have some code to display the result from the Recordset. On the same page, I also have a pull down window of file types (Access, Excel, Text File, etc.) and a "Save" button. It lets the user to select a file type to save the result as. My question is how do I pass the Recordset to another ASP page or if there is a better way of doing it.
The ASP code looks like:
set cn = Server.CreateObject("ADODB.Connection"
cn.ConnectionString = ConnectionStr
cn.Open
set rs = Server.CreateObject("ADODB.Recordset"
rs.ActiveConnection = cn
SQLStr = "select Company, address, date from company"
rs.Open SQLStr
' some code to display the result
Thanks in advance.
I need a little help on ASP and Recordset.
I have a query in my ASP page to select few data items from the company table (SQL 2000 database), and I have some code to display the result from the Recordset. On the same page, I also have a pull down window of file types (Access, Excel, Text File, etc.) and a "Save" button. It lets the user to select a file type to save the result as. My question is how do I pass the Recordset to another ASP page or if there is a better way of doing it.
The ASP code looks like:
set cn = Server.CreateObject("ADODB.Connection"
cn.ConnectionString = ConnectionStr
cn.Open
set rs = Server.CreateObject("ADODB.Recordset"
rs.ActiveConnection = cn
SQLStr = "select Company, address, date from company"
rs.Open SQLStr
' some code to display the result
Thanks in advance.