[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Dennis

4/21/2004 2:39:00 PM

All,

In looking at the code Microsoft generates when I ask FP to put a link to my
Access DB onto my web page, I see a lot of Webbot stuff rather than the
JScript, VBScript and ASP I was expecting. Thus far, in my reading, I
haven't come across discussions and/or references to webbot technology with
respect to FP + Access. Can someone give me a thumbnail orientation here
and maybe some links/references that I can read to better understand this
stuff?

Many thanks!

--
Dennis Gallagher
Monroe, WA, USA


2 Answers

Net55

4/21/2004 4:40:00 PM

0

webots allow you to edit the FrontPage asp through wizards.
It is not neccessary for code to be there, but if you
remove it and want to edit the page you will need to edit
the code in html or code view.

Here is what a db looks like with webbot and under this
without:
------------------
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 2</title>
</head>

<body>

<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>Key</b></th>
<th ALIGN="LEFT"><b>Name</b></th>
<th
ALIGN="LEFT"><b>Address</b></th>
<th ALIGN="LEFT"><b>Choice</b></th>
</tr>
</thead>
<tbody>
<!--webbot bot="DatabaseRegionStart" s-
columnnames="Key,Name,Address,Choice" s-
columntypes="3,202,203,2" s-dataconnection="database1" 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="FALSE" s-
recordsource="Results" s-
displaycolumns="Key,Name,Address,Choice" s-criteria s-
order s-sql="SELECT * FROM Results" b-procedure="FALSE"
clientside suggestedext="asp" s-defaultfields s-
norecordsfound="No records returned." i-maxrecords="256" i-
groupsize="5" botid="0" u-
dblib="fpweb:///_fpclass/fpdblib.inc" u-
dbrgn1="fpweb:///_fpclass/fpdbrgn1.inc" u-
dbrgn2="fpweb:///_fpclass/fpdbrgn2.inc" tag="TBODY"
preview="&lt;tr&gt;&lt;td colspan=64
bgcolor=&quot;#FFFF00&quot; width=&quot;100%
&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;This is
the start of a Database Results region. The region will
not work unless the page has a file extension of
&quot;.asp&quot;.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;"
startspan --><!--#include
file="fpweb:///_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 Results"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=4 align=""LEFT""
width=""100%"">No records returned.</td></tr>"
fp_sDataConn="database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Key=3&Name=202&Address=203&Choice=2&"
fp_iDisplayCols=4
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="fpweb:///_fpclass/fpdbrgn1.inc"-->
<!--webbot bot="DatabaseRegionStart" endspan i-
checksum="9448" --><tr>
<td>
<!--webbot
bot="DatabaseResultColumn" s-
columnnames="Key,Name,Address,Choice" s-column="Key" b-
tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="&lt;font size=&quot;-
1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Key&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
startspan --><%=FP_FieldVal(fp_rs,"Key")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="2510" --
></td>
<td>
<!--webbot
bot="DatabaseResultColumn" s-
columnnames="Key,Name,Address,Choice" s-column="Name" b-
tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="&lt;font size=&quot;-
1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Name&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
startspan --><%=FP_FieldVal(fp_rs,"Name")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="3900" --
></td>
<td>
<!--webbot
bot="DatabaseResultColumn" s-
columnnames="Key,Name,Address,Choice" s-column="Address" b-
tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="&lt;font size=&quot;-
1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Address&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
startspan --><%=FP_FieldVal(fp_rs,"Address")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="12103" --
></td>
<td>
<!--webbot
bot="DatabaseResultColumn" s-
columnnames="Key,Name,Address,Choice" s-column="Choice" b-
tableformat="TRUE" b-hashtml="FALSE" b-makelink="FALSE"
clientside b-MenuFormat preview="&lt;font size=&quot;-
1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;Choice&lt;font
size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
startspan --><%=FP_FieldVal(fp_rs,"Choice")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="14426" --
></td>
</tr>
<!--webbot bot="DatabaseRegionEnd" b-
tableformat="TRUE" b-menuformat="FALSE" u-
dbrgn2="fpweb:///_fpclass/fpdbrgn2.inc" i-groupsize="5"
clientside tag="TBODY" preview="&lt;tr&gt;&lt;td
colspan=64 bgcolor=&quot;#FFFF00&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
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/5]
&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;" startspan --
><!--#include file="fpweb:///_fpclass/fpdbrgn2.inc"-->
<!--webbot bot="DatabaseRegionEnd" endspan i-
checksum="23298" --></tbody>
</table>

</body>

</html>

------------------------------

With out webbot

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 2</title>
</head>

<body>

<table width="100%" border="1">
<thead>
<tr>
<th ALIGN="LEFT"><b>Key</b></th>
<th ALIGN="LEFT"><b>Name</b></th>
<th
ALIGN="LEFT"><b>Address</b></th>
<th ALIGN="LEFT"><b>Choice</b></th>
</tr>
</thead>
<tbody>
<!--#include
file="fpweb:///_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 Results"
fp_sDefault=""
fp_sNoRecords="<tr><td colspan=4 align=""LEFT""
width=""100%"">No records returned.</td></tr>"
fp_sDataConn="database1"
fp_iMaxRecords=256
fp_iCommandType=1
fp_iPageSize=5
fp_fTableFormat=True
fp_fMenuFormat=False
fp_sMenuChoice=""
fp_sMenuValue=""
fp_sColTypes="&Key=3&Name=202&Address=203&Choice=2&"
fp_iDisplayCols=4
fp_fCustomQuery=False
BOTID=0
fp_iRegion=BOTID
%>
<!--#include file="fpweb:///_fpclass/fpdbrgn1.inc"-->
<tr>
<td>
<%=FP_FieldVal(fp_rs,"Key")%></td>
<td>
<%=FP_FieldVal(fp_rs,"Name")%></td>
<td>
<%=FP_FieldVal(fp_rs,"Address")%
></td>
<td>
<%=FP_FieldVal(fp_rs,"Choice")%
></td>
</tr>
<!--#include
file="fpweb:///_fpclass/fpdbrgn2.inc"-->
</tbody>
</table>

</body>

</html>

Here is a Macro that will do this for you:
http://www.frontpagewebmaster.com/m-54...

http://www.frontp...

>-----Original Message-----
>All,
>
>In looking at the code Microsoft generates when I ask FP
to put a link to my
>Access DB onto my web page, I see a lot of Webbot stuff
rather than the
>JScript, VBScript and ASP I was expecting. Thus far, in
my reading, I
>haven't come across discussions and/or references to
webbot technology with
>respect to FP + Access. Can someone give me a thumbnail
orientation here
>and maybe some links/references that I can read to better
understand this
>stuff?
>
>Many thanks!
>
>--
>Dennis Gallagher
>Monroe, WA, USA
>
>
>.
>

Lisa Wollin \(MS\)

4/21/2004 7:46:00 PM

0

Hi, Dennis,

Webbots are generally used with the FrontPage Server Extensions. FrontPage
inserts them for features like databases, form processing, email processing,
hit counters, etc. Anytime you insert a FrontPage Web component, FrontPage
will insert Webbot code. Some of this code is used on the client side, and
FrontPage will remove it when you publish the page; in this case the Server
Extensions are not involved. Other code requires server-side processing
(like ASP) and the Server Extensions will convert to HTML when someone
accesses the page from the Internet.

In your case, the webbot code is necessary for the Server Extensions to
properly convert the code to HTML.

In versions earlier than FP 2003, released last October, all database
processing was accomplished through webbot code. However, in FP 2003, you
could choose to use either ASP or ASP.NET code for database processing.

Hope this helps.

--
Lisa Wollin
Programmer Writer
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included code samples are subject to the terms specified at
http://www.microsoft.com/info/cp....
"Dennis" <junk@galron.com> wrote in message
news:uM1%23T46JEHA.228@TK2MSFTNGP10.phx.gbl...
> All,
>
> In looking at the code Microsoft generates when I ask FP to put a link to
my
> Access DB onto my web page, I see a lot of Webbot stuff rather than the
> JScript, VBScript and ASP I was expecting. Thus far, in my reading, I
> haven't come across discussions and/or references to webbot technology
with
> respect to FP + Access. Can someone give me a thumbnail orientation here
> and maybe some links/references that I can read to better understand this
> stuff?
>
> Many thanks!
>
> --
> Dennis Gallagher
> Monroe, WA, USA
>
>