H
Henry Stock
This is the automatically generated code from the FrontPage Sample Interface. I am trying to understand this so I can figure out where I can add
business logic, etc. to an interface. I gather that the lines in gray are generated by FrontPage.
Can this part be edited manually?
It looks like the area that specifies much of the the information about the query, the tabes used and the columns that will be shown.
What does 202 stand for?
Is i-groupsize the number of records to show per page?
What are the include files shown here?
<!--#include file="../../_fpclass/fpdblib.inc"-->
<!--#include file="../../_fpclass/fpdbrgn1.inc"-->
What are the checksums all about? For example: i-checksum="35618"
This doesn't look like stuff I was expecting to see, ADO recordsets etc.
<!--webbot bot="DatabaseRegionStart"
s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax"
s-columntypes="202,202,202,202,202,202,202,202,202,202,202"
s-dataconnection="Sample" b-tableformat="TRUE" b-menuformat="FALSE"
s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE"
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE"
i-listformat="0" b-makeform="TRUE" s-recordsource="Customers"
s-displaycolumns="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax"
s-criteria s-order s-sql="SELECT * FROM Customers" b-procedure="FALSE"
clientside suggestedext="asp" s-defaultfields
s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="5"
botid="0" u-dblib="../../_fpclass/fpdblib.inc"
u-dbrgn1="../../_fpclass/fpdbrgn1.inc"
u-dbrgn2="../../_fpclass/fpdbrgn2.inc" tag="TBODY" startspan
preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">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.</font></td></tr>" --><!--#include file="../../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM Customers"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=11 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="Sample"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&CustomerID=202&CompanyName=202&ContactName=202&ContactTitle=202&Address=202&City=202&Region=202&PostalCode=202&Country=202&Phone=202&Fax=202&"
fp_iDisplayCols=11
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="35618" -->
<tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="CustomerID" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>CustomerID<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"CustomerID")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="23468" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="CompanyName" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>CompanyName<fontsize="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"CompanyName")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="29451" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="ContactName" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ContactName<fontsize="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"ContactName")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="29292" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="ContactTitle" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ContactTitle<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"ContactTitle")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="32621" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Address" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Address<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Address")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="12103" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="City" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>City<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"City")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="4267" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Region" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Region<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Region")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="15114" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="PostalCode" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>PostalCode<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"PostalCode")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="28780" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Country" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Country<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Country")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="13796" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Phone" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Phone<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Phone")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="8388" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Fax" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Fax<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Fax")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="1677" -->
</td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE"
u-dbrgn2="../../_fpclass/fpdbrgn2.inc" i-groupsize="5" clientside
tag="TBODY" startspan
preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the end of a Database Results region.</font></td></tr><TR><TD VALIGN=MIDDLE COLSPAN=64><NOBR><INPUT TYPE=Button VALUE=" |< "><INPUT TYPE=Button VALUE=" < "><INPUT TYPE=Button VALUE=" > "><INPUT TYPE=Button VALUE=" >| "> [1/5]</NOBR><BR></td></tr>" --><!--#include file="../../_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="65064" -->
</tbody>
business logic, etc. to an interface. I gather that the lines in gray are generated by FrontPage.
Can this part be edited manually?
It looks like the area that specifies much of the the information about the query, the tabes used and the columns that will be shown.
What does 202 stand for?
Is i-groupsize the number of records to show per page?
What are the include files shown here?
<!--#include file="../../_fpclass/fpdblib.inc"-->
<!--#include file="../../_fpclass/fpdbrgn1.inc"-->
What are the checksums all about? For example: i-checksum="35618"
This doesn't look like stuff I was expecting to see, ADO recordsets etc.
<!--webbot bot="DatabaseRegionStart"
s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax"
s-columntypes="202,202,202,202,202,202,202,202,202,202,202"
s-dataconnection="Sample" b-tableformat="TRUE" b-menuformat="FALSE"
s-menuchoice s-menuvalue b-tableborder="TRUE" b-tableexpand="TRUE"
b-tableheader="TRUE" b-listlabels="TRUE" b-listseparator="TRUE"
i-listformat="0" b-makeform="TRUE" s-recordsource="Customers"
s-displaycolumns="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax"
s-criteria s-order s-sql="SELECT * FROM Customers" b-procedure="FALSE"
clientside suggestedext="asp" s-defaultfields
s-norecordsfound="No records returned." i-maxrecords="256" i-groupsize="5"
botid="0" u-dblib="../../_fpclass/fpdblib.inc"
u-dbrgn1="../../_fpclass/fpdbrgn1.inc"
u-dbrgn2="../../_fpclass/fpdbrgn2.inc" tag="TBODY" startspan
preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">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.</font></td></tr>" --><!--#include file="../../_fpclass/fpdblib.inc"-->
<% if 0 then %>
<SCRIPT Language="JavaScript">
document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>");
</SCRIPT>
<% end if %>
<%
fp_sQry="SELECT * FROM Customers"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=11 align=""LEFT"" width=""100%"">No records returned.</td></tr>"
fp_sDataConn="Sample"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&CustomerID=202&CompanyName=202&ContactName=202&ContactTitle=202&Address=202&City=202&Region=202&PostalCode=202&Country=202&Phone=202&Fax=202&"
fp_iDisplayCols=11
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="../../_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-checksum="35618" -->
<tr>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="CustomerID" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>CustomerID<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"CustomerID")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="23468" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="CompanyName" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>CompanyName<fontsize="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"CompanyName")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="29451" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="ContactName" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ContactName<fontsize="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"ContactName")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="29292" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="ContactTitle" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>ContactTitle<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"ContactTitle")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="32621" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Address" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Address<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Address")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="12103" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="City" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>City<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"City")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="4267" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Region" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Region<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Region")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="15114" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="PostalCode" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>PostalCode<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"PostalCode")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="28780" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Country" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Country<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Country")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="13796" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Phone" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Phone<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Phone")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="8388" -->
</td>
<td>
<!--webbot bot="DatabaseResultColumn" s-columnnames="CustomerID,CompanyName,ContactName,ContactTitle,Address,City,Region,PostalCode,Country,Phone,Fax" s-column="Fax" b-tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE" clientside b-MenuFormat preview="<font size="-1">&lt;&lt;</font>Fax<font size="-1">&gt;&gt;</font>" startspan --><%=FP_FieldVal(fp_rs,"Fax")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="1677" -->
</td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-tableformat="TRUE" b-menuformat="FALSE"
u-dbrgn2="../../_fpclass/fpdbrgn2.inc" i-groupsize="5" clientside
tag="TBODY" startspan
preview="<tr><td colspan=64 bgcolor="#FFFF00" width="100%"><font color="#000000">This is the end of a Database Results region.</font></td></tr><TR><TD VALIGN=MIDDLE COLSPAN=64><NOBR><INPUT TYPE=Button VALUE=" |< "><INPUT TYPE=Button VALUE=" < "><INPUT TYPE=Button VALUE=" > "><INPUT TYPE=Button VALUE=" >| "> [1/5]</NOBR><BR></td></tr>" --><!--#include file="../../_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-checksum="65064" -->
</tbody>