Hiding a button based upon record count

  • Thread starter Thread starter jhmosow
  • Start date Start date
J

jhmosow

I am using FP2k and have a form with a button that links to a printable
version of the page. I want to hide the button if the record count is
less than 20. I know I can get the record count by using:

<%
Dim rCount
rCount=fp_rs.RecordCount
If rCount > 20 Then %>
' show the button
<%Else%>
' hide the button
<%End If%>

But, I don't know how to show/hide the button. The button is named
Print_Button and is in the table area with my submit/reset buttons and
a text input box used to enter search criteria.

Any help on how to do this?

TIA
 
It's been a good while since I toyed with classic ASP, but you should just
be able to put the code for the button in the if statement

<%
Dim rCount
rCount=fp_rs.RecordCount
If rCount > 20 Then %>
<input type="button" text="Click Me">
<% End If %>

Or, use a Response.Write
<%
Dim rCount
rCount=fp_rs.RecordCount
If rCount > 20 Then
Response.Write("<input type=""button"" text=""Click Me"">")
End If %>

One thing to be aware of, recordsets don't always return a correct count.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Where in my HTML code does this go? I am guessing it goes in the
DatabaseRegion, but have not been able to get it to work.
 
Where in my HTML code does this go? I am guessing it goes in the
DatabaseRegion, but have not been able to get it to work.
 
I found where to put the code, but it shows a button for each item on
the page. What I really want to do is check to check the record count.
If it is less than 20, hide the Print_Button else show the
Print_Button. Here is my current code but I have not been able to
figure out how to show/hide the button in the ASP.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Software Installation Counts</title>
<meta name="Microsoft Theme" content="none, default">
</head>

<body>

<p align="left"><font face="Arial Black" color="#008080"><a
href="pcaudit_reports.htm">Return to Report
Menu</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
size="2">&nbsp;&nbsp;&nbsp;</font>&nbsp;&nbsp;&nbsp;&nbsp; <font
size="2">Date: <script language="VBScript">
document.write(FormatDateTime(Date(),0))</script>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Time: <script language="VBScript">
document.write(FormatDateTime(Time(),0))</script>
</font></p>
<p align="center"><font size="7" face="Comic Sans MS"
color="#FF0066"><i><b><u>Software
Installation Counts</u></b></i></font></p>
<form botid="0" method="POST"
action="Software_Installation_Counts_Test.asp"
name="FormName">
<table border="0" width="675">
<tr>
<td width="103"><b>Software Name</b></td>
<td width="148"><input name="Software_Name_Input"
value="<%=Request("Software_Name_Input")%>" size="20"
tabindex="1"></td>
<td width="404"></td>
</tr>
</table>
<br>
<input type="submit" tabindex="2"> <input type="reset"
tabindex="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font color="#FF0000"><input type="button" value="Printable Version"
name="Print_Button" id="Print_Button"

onclick="window.open('http://iticentral/rms/Software_Installation_Counts_For_Printing.asp?Software_Name_Input=<%=Request("Software_Name_Input")%>')"
tabindex="4"></font><!--webbot bot="SaveAsASP" clientside
suggestedext="asp"
preview=" " -->
</form>
<table width="650" border="1">
<thead>
<tr>
<td width="282" bgcolor="#C0C0C0" bordercolor="#000000"
bordercolorlight="#000000" bordercolordark="#000000"><b>Software
Name</b></td>
<td width="187" bgcolor="#C0C0C0" bordercolor="#000000"
bordercolorlight="#000000" bordercolordark="#000000"
align="center"><b>Version</b></td>
<td align="center" width="40" bgcolor="#C0C0C0"
bordercolor="#000000"
bordercolorlight="#000000"
bordercolordark="#000000"><b>Count</b></td>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" startspan
s-columnnames="Software_Name,Version,CountOfVersion"
s-columntypes="200,200,3" s-dataconnection="PCAudit"
b-tableformat="TRUE"
b-menuformat="FALSE" s-menuchoice="Software_Name"
s-menuvalue="Software_Name" b-tableborder="TRUE"
b-tableexpand="TRUE"
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE"
i-listformat="0" b-makeform="TRUE"
s-recordsource="Software_Installation_Count"
s-displaycolumns="Software_Name,Version,CountOfVersion"
s-criteria="[Software_Name] CNT {Software_Name_Input} +"
s-order="[Software_Name] + [Version] +"
s-sql="SELECT * FROM Software_Installation_Count WHERE
(Software_Name LIKE '%::Software_Name_Input::%') ORDER BY Software_Name
ASC,Version ASC"
b-procedure="FALSE" clientside suggestedext="asp"
s-defaultfields="Software_Name_Input="
s-norecordsfound="No records returned." i-maxrecords="0"
i-groupsize="20"
botid="0" u-dblib="_fpclass/fpdblib.inc"
u-dbrgn1="_fpclass/fpdbrgn1.inc"
u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY"
local_preview="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;Database Results regions will not preview
unless this page is fetched from a Web server with a web browser. The
following table row will repeat once for every record returned by the
query.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot;
align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the start of a Database Results
region. The page must be fetched from a web server with a web browser
to display correctly; the current web is stored on your local disk or
network.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
b-wastableformat="TRUE" --><!--#include
file="_fpclass/fpdblib.inc"-->
<%
fp_sQry="SELECT * FROM Software_Installation_Count WHERE (Software_Name
LIKE '%::Software_Name_Input::%') ORDER BY Software_Name ASC,Version
ASC"
fp_sDefault="Software_Name_Input="
fp_sNoRecords="<tr><td colspan=3 align=left width=""100%"">No records
returned.</td></tr>"
fp_sDataConn="PCAudit"
fp_iMaxRecords=0
fp_iCommandType=1
fp_iPageSize=20
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice="Software_Name"
fp_sMenuValue="Software_Name"
fp_iDisplayCols=3
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" i-checksum="19791" endspan -->
<%
Dim rCount
On Error Resume Next
rCount=fp_rs.RecordCount
If rCount > 20 Then
Response.Write("<input type=""button"" text=""Click Me"">")
End If
%>
<tr>
<td width="282" bordercolor="#000000" bordercolorlight="#000000"
bordercolordark="#000000"><!--webbot bot="DatabaseResultColumn"
startspan
s-columnnames="Software_Name,Version,CountOfVersion"
s-column="Software_Name" b-tableformat="TRUE" b-hashtml="FALSE"
clientside
local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Software_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Software_Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Software_Name")%><!--webbot
bot="DatabaseResultColumn" i-checksum="32166" endspan --></td>
<td width="187" bordercolor="#000000" bordercolorlight="#000000"
bordercolordark="#000000" align="center"><!--webbot
bot="DatabaseResultColumn" startspan
s-columnnames="Software_Name,Version,CountOfVersion"
s-column="Version"
b-tableformat="TRUE" b-hashtml="FALSE" clientside
local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Version&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Version&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"Version")%><!--webbot
bot="DatabaseResultColumn" i-checksum="13495" endspan --></td>
<td align="center" width="40" bordercolor="#000000"
bordercolorlight="#000000" bordercolordark="#000000"><!--webbot
bot="DatabaseResultColumn" startspan
s-columnnames="Software_Name,Version,CountOfVersion"
s-column="CountOfVersion" b-tableformat="TRUE"
b-hashtml="FALSE"
clientside
local_preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;CountOfVersion&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
preview="&lt;font
size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;CountOfVersion&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
--><%=FP_FieldVal(fp_rs,"CountOfVersion")%><!--webbot
bot="DatabaseResultColumn" i-checksum="42319" endspan --></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" startspan b-tableformat="TRUE"
b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc"
i-groupsize="20"
clientside tag="TBODY"
local_preview="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This is
the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD ALIGN=LEFT
VALIGN=MIDDLE COLSPAN=64&gt;&lt;FORM&gt;&lt;NOBR&gt;&lt;INPUT
TYPE=Button VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button
VALUE=&quot; &lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
&quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
[1/20]&lt;/NOBR&gt;&lt;/FORM&gt;&lt;/td&gt;&lt;/tr&gt;"
preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot;
align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font
color=&quot;#000000&quot;&gt;This is the end of a Database Results
region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD ALIGN=LEFT
VALIGN=MIDDLE COLSPAN=64&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button
VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot;
&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
&quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
[1/20]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include
file="_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" i-checksum="62730" endspan -->
</tbody>
<tr>
<td>&nbsp;
</table>

</body>

</html>
 
1) Remove the print button from the top form
- at that point you have no FP DBRW results
2) Your button should be in the last row of the table (after the DBRW) as a separate form

<td colspan="3">
<%
Dim rCount
On Error Resume Next
rCount=fp_rs.RecordCount
If rCount > 20 Then
%>
<form><input type="button" value="Printable Version" name="Print_Button" id="Print_Button"
onclick="window.open('http://iticentral/rms/Software_Installation_Counts_For_Printing.asp?Software_Name_Input=<%=Request("Software_Name_Input")%>')"
tabindex="1"></form>
<%End If %>
</td></tr>

PS
The space bar is not a design tool
-
--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I found where to put the code, but it shows a button for each item on
| the page. What I really want to do is check to check the record count.
| If it is less than 20, hide the Print_Button else show the
| Print_Button. Here is my current code but I have not been able to
| figure out how to show/hide the button in the ASP.
|
| <html>
|
| <head>
| <meta http-equiv="Content-Type" content="text/html;
| charset=windows-1252">
| <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
| <meta name="ProgId" content="FrontPage.Editor.Document">
| <title>Software Installation Counts</title>
| <meta name="Microsoft Theme" content="none, default">
| </head>
|
| <body>
|
| <p align="left"><font face="Arial Black" color="#008080"><a
| href="pcaudit_reports.htm">Return to Report
| Menu</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font
| size="2">&nbsp;&nbsp;&nbsp;</font>&nbsp;&nbsp;&nbsp;&nbsp; <font
| size="2">Date: <script language="VBScript">
| document.write(FormatDateTime(Date(),0))</script>
|
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| Time: <script language="VBScript">
| document.write(FormatDateTime(Time(),0))</script>
| </font></p>
| <p align="center"><font size="7" face="Comic Sans MS"
| color="#FF0066"><i><b><u>Software
| Installation Counts</u></b></i></font></p>
| <form botid="0" method="POST"
| action="Software_Installation_Counts_Test.asp"
| name="FormName">
| <table border="0" width="675">
| <tr>
| <td width="103"><b>Software Name</b></td>
| <td width="148"><input name="Software_Name_Input"
| value="<%=Request("Software_Name_Input")%>" size="20"
| tabindex="1"></td>
| <td width="404"></td>
| </tr>
| </table>
| <br>
| <input type="submit" tabindex="2"> <input type="reset"
|
tabindex="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
| <font color="#FF0000"><input type="button" value="Printable Version"
| name="Print_Button" id="Print_Button"
|
|
onclick="window.open('http://iticentral/rms/Software_Installation_Counts_For_Printing.asp?Software_Name_Input=<%=Request("Software_Name_Input")%>')"
| tabindex="4"></font><!--webbot bot="SaveAsASP" clientside
| suggestedext="asp"
| preview=" " -->
| </form>
| <table width="650" border="1">
| <thead>
| <tr>
| <td width="282" bgcolor="#C0C0C0" bordercolor="#000000"
| bordercolorlight="#000000" bordercolordark="#000000"><b>Software
| Name</b></td>
| <td width="187" bgcolor="#C0C0C0" bordercolor="#000000"
| bordercolorlight="#000000" bordercolordark="#000000"
| align="center"><b>Version</b></td>
| <td align="center" width="40" bgcolor="#C0C0C0"
| bordercolor="#000000"
| bordercolorlight="#000000"
| bordercolordark="#000000"><b>Count</b></td>
| </tr>
| </thead>
| <tbody>
| <!--webbot bot="DatabaseRegionStart" startspan
| s-columnnames="Software_Name,Version,CountOfVersion"
| s-columntypes="200,200,3" s-dataconnection="PCAudit"
| b-tableformat="TRUE"
| b-menuformat="FALSE" s-menuchoice="Software_Name"
| s-menuvalue="Software_Name" b-tableborder="TRUE"
| b-tableexpand="TRUE"
| b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE"
| i-listformat="0" b-makeform="TRUE"
| s-recordsource="Software_Installation_Count"
| s-displaycolumns="Software_Name,Version,CountOfVersion"
| s-criteria="[Software_Name] CNT {Software_Name_Input} +"
| s-order="[Software_Name] + [Version] +"
| s-sql="SELECT * FROM Software_Installation_Count WHERE
| (Software_Name LIKE '%::Software_Name_Input::%') ORDER BY Software_Name
| ASC,Version ASC"
| b-procedure="FALSE" clientside suggestedext="asp"
| s-defaultfields="Software_Name_Input="
| s-norecordsfound="No records returned." i-maxrecords="0"
| i-groupsize="20"
| botid="0" u-dblib="_fpclass/fpdblib.inc"
| u-dbrgn1="_fpclass/fpdbrgn1.inc"
| u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="TBODY"
| local_preview="&lt;tr&gt;&lt;td colspan=64
| bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
| width=&quot;100%&quot;&gt;&lt;font
| color=&quot;#000000&quot;&gt;Database Results regions will not preview
| unless this page is fetched from a Web server with a web browser. The
| following table row will repeat once for every record returned by the
| query.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
| preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot;
| align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font
| color=&quot;#000000&quot;&gt;This is the start of a Database Results
| region. The page must be fetched from a web server with a web browser
| to display correctly; the current web is stored on your local disk or
| network.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
| b-wastableformat="TRUE" --><!--#include
| file="_fpclass/fpdblib.inc"-->
| <%
| fp_sQry="SELECT * FROM Software_Installation_Count WHERE (Software_Name
| LIKE '%::Software_Name_Input::%') ORDER BY Software_Name ASC,Version
| ASC"
| fp_sDefault="Software_Name_Input="
| fp_sNoRecords="<tr><td colspan=3 align=left width=""100%"">No records
| returned.</td></tr>"
| fp_sDataConn="PCAudit"
| fp_iMaxRecords=0
| fp_iCommandType=1
| fp_iPageSize=20
| fp_fTableFormat=True
| fp_fMenuFormat=False
| fp_sMenuChoice="Software_Name"
| fp_sMenuValue="Software_Name"
| fp_iDisplayCols=3
| fp_fCustomQuery=False
| BOTID=0
| fp_iRegion=BOTID
| %>
| <!--#include file="_fpclass/fpdbrgn1.inc"-->
| <!--webbot bot="DatabaseRegionStart" i-checksum="19791" endspan -->
| <%
| Dim rCount
| On Error Resume Next
| rCount=fp_rs.RecordCount
| If rCount > 20 Then
| Response.Write("<input type=""button"" text=""Click Me"">")
| End If
| %>
| <tr>
| <td width="282" bordercolor="#000000" bordercolorlight="#000000"
| bordercolordark="#000000"><!--webbot bot="DatabaseResultColumn"
| startspan
| s-columnnames="Software_Name,Version,CountOfVersion"
| s-column="Software_Name" b-tableformat="TRUE" b-hashtml="FALSE"
| clientside
| local_preview="&lt;font
| size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Software_Name&lt;font
| size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
| preview="&lt;font
| size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Software_Name&lt;font
| size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
| --><%=FP_FieldVal(fp_rs,"Software_Name")%><!--webbot
| bot="DatabaseResultColumn" i-checksum="32166" endspan --></td>
| <td width="187" bordercolor="#000000" bordercolorlight="#000000"
| bordercolordark="#000000" align="center"><!--webbot
| bot="DatabaseResultColumn" startspan
| s-columnnames="Software_Name,Version,CountOfVersion"
| s-column="Version"
| b-tableformat="TRUE" b-hashtml="FALSE" clientside
| local_preview="&lt;font
| size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Version&lt;font
| size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
| preview="&lt;font
| size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Version&lt;font
| size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
| --><%=FP_FieldVal(fp_rs,"Version")%><!--webbot
| bot="DatabaseResultColumn" i-checksum="13495" endspan --></td>
| <td align="center" width="40" bordercolor="#000000"
| bordercolorlight="#000000" bordercolordark="#000000"><!--webbot
| bot="DatabaseResultColumn" startspan
| s-columnnames="Software_Name,Version,CountOfVersion"
| s-column="CountOfVersion" b-tableformat="TRUE"
| b-hashtml="FALSE"
| clientside
| local_preview="&lt;font
| size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;CountOfVersion&lt;font
| size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
| preview="&lt;font
| size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;CountOfVersion&lt;font
| size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
| --><%=FP_FieldVal(fp_rs,"CountOfVersion")%><!--webbot
| bot="DatabaseResultColumn" i-checksum="42319" endspan --></td>
| </tr>
| <!--webbot bot="DatabaseRegionEnd" startspan b-tableformat="TRUE"
| b-menuformat="FALSE" u-dbrgn2="_fpclass/fpdbrgn2.inc"
| i-groupsize="20"
| clientside tag="TBODY"
| local_preview="&lt;tr&gt;&lt;td colspan=64
| bgcolor=&quot;#FFFF00&quot; align=&quot;left&quot;
| width=&quot;100%&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This is
| the end of a Database Results
| region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD ALIGN=LEFT
| VALIGN=MIDDLE COLSPAN=64&gt;&lt;FORM&gt;&lt;NOBR&gt;&lt;INPUT
| TYPE=Button VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button
| VALUE=&quot; &lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
| &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
| [1/20]&lt;/NOBR&gt;&lt;/FORM&gt;&lt;/td&gt;&lt;/tr&gt;"
| preview="&lt;tr&gt;&lt;td colspan=64 bgcolor=&quot;#FFFF00&quot;
| align=&quot;left&quot; width=&quot;100%&quot;&gt;&lt;font
| color=&quot;#000000&quot;&gt;This is the end of a Database Results
| region.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD ALIGN=LEFT
| VALIGN=MIDDLE COLSPAN=64&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button
| VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot;
| &lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;
| &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt;
| [1/20]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;" --><!--#include
| file="_fpclass/fpdbrgn2.inc"-->
| <!--webbot bot="DatabaseRegionEnd" i-checksum="62730" endspan -->
| </tbody>
| <tr>
| <td>&nbsp;
| </table>
|
| </body>
|
| </html>
|
 
Back
Top