ranta
Programmer
- Jun 24, 2003
- 30
I am currently producing a number of reports in ASP built via stored procedures. Basicaly, each stored procedure will build a temp table of results dependant upon the parms passed from the ASP page. I then return these results to the ASP page and format the results to get the report to look how I want it.
Want I want to be able to do is allow the user to click on any one of the column headings on the ASP results page and to get the report to re-order by this column.
Obviously I could pass this info back to the Stored Procedure and re-run the report but many of these reports are quite time consuming. I would rather just allow the user to be able to play with the results without having to re-run the report....
Does anyone out there have any ideas on how to do this, I have thought that maybe I could load all the results into a mulit-dimensional array within the ASP and re-sort this array by the column selected (not really sure how realistic this is). I was also wandering if there was anyway that you can make the temp table within the stored proc persistant, so that I could re-call the stored proc and the results would still be there, that way I could just re-order them....?
Any help on this one would be much appreciated.
Thanks,
Ranta
Want I want to be able to do is allow the user to click on any one of the column headings on the ASP results page and to get the report to re-order by this column.
Obviously I could pass this info back to the Stored Procedure and re-run the report but many of these reports are quite time consuming. I would rather just allow the user to be able to play with the results without having to re-run the report....
Does anyone out there have any ideas on how to do this, I have thought that maybe I could load all the results into a mulit-dimensional array within the ASP and re-sort this array by the column selected (not really sure how realistic this is). I was also wandering if there was anyway that you can make the temp table within the stored proc persistant, so that I could re-call the stored proc and the results would still be there, that way I could just re-order them....?
Any help on this one would be much appreciated.
Thanks,
Ranta