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: Listbox Display Fast + Caching
     [next Lesson]  RsFast: Library Source Code

Overview: RSFast - Debug Example
by Charles Carroll

If the library Rsfast is misbehaving due to bad info supplied you can turn on lots of debugging info. We will turn this on in a working file to see it in action. Here is the code:

   filename=/learn/rsfast_current/rsfast-lists-debug.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,conntest
    conntest="DSN=student;uid=student;pwd=magic"
   set rsparms=server.CreateObject("Scripting.Dictionary")
    rsparms.add "debug", true
   rsparms.Add "conn", conntest
   rsparms.add "sql", "select distinct city from publishers"
   rsparms.add "template", "list"
   rsparms.add "templatename", "city"
   Call RsFast(rsparms)
   Call PerfDisplay(rsparms)
   response.flush

   rsparms.item("sql")="select distinct state from publishers"
   rsparms.item("templatename")="state"
   rsparms.item("cachemin")=20
   Call RsFast(rsparms)
   Call PerfDisplay(rsparms)
   response.flush

   rsparms.item("sql")="select distinct zip from publishers"
   rsparms.item("templatename")="zip"
   Call RsFast(rsparms)
   Call PerfDisplay(rsparms)
   response.flush
    
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