Search Search

#1 worldwide
FREE Coding Lessons

since 1996
   THE BEST WAY to learn ASP & Asp.net!
Advertise Here!
click for details
Credits Host:
DiscountASP.net
Server Admin:
The "Team"
Contact Info.
Charles M. Carroll

my Blog
[prev. Lesson]  RSFast: Templates, MS-Access
     [next Lesson]  RSFast: Table Display Fast

Overview: RSFast - Performance Data
by Charles Carroll

The library Rsfast tracks all data queries. Here is the code to display the query performance data:

   filename=/learn/rsfast_current/rsfast-perfdata-pretty.asp

<Test Script Below>


<%@ enablesessionstate=false%>
<%option explicit%>
<%
response.buffer=true
server.scripttimeout=40
%>
<!--#include file="lib_rsfast.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>rsfast-perfdata</title>
</head>
<body bgcolor="#FFFFFF">
<%
   ' Only use call below to wipe out all PerfData
   ' Call PerfDisplayClear()
   
    Call PerfDisplayPretty()
%>
</body>
</html>

If you wish to reset the query performance data, there is a command for that.

   filename=/learn/rsfast_current/rsfast-cmd-perf-clear.asp

<Test Script Below>


<%@ enablesessionstate=false%>
<%option explicit%>
<%
response.buffer=true
server.scripttimeout=40
%>
<!--#include file="lib_rsfast.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>rsfast-lists</title>
</head>
<body bgcolor="#FFFFFF">
<%
   dim rsparms
   set rsparms=server.CreateObject("Scripting.Dictionary")

   rsparms.add "cmd", "ver"
   Call RsFast(rsparms)
    response.write "RSFast Version " & rsparms.item("cmd-result") & "<br>"

    rsparms.item("cmd")="perf-clear"
    Call RsFast(rsparms)
    response.write "Command Result=" & rsparms.item("cmd-result") & "<br>"

    set rsparms=nothing
    
%>
</body>
</html>

The library file that does all the work is at:
http://www.learnasp.com/freebook/asp/rsfast-lib.aspx
so go there to cut and paste the include file if needed.

Chaz Wish List
Tall Tip $5
Grande Tip $20
Venti Tip $39
Tip Jar Thanks
2004 Thanks
2005 Thanks
HUGE Tip -love site