Include Page in FP2003

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

I'm trying the new FP2003 and have come across an odd
issue. When inserting an Include Page, it will not let
me select a .ASP page to include, only a .HTM page. In
FP2000 I could insert .ASP pages, so it's hard to imagine
this capability would have been removed in the latest
version. Does anyone familiar with FP2003 know if I have
to change some special settings to activate this?
 
-----Original Message-----
I'm trying the new FP2003 and have come across an odd
issue. When inserting an Include Page, it will not let
me select a .ASP page to include, only a .HTM page. In
FP2000 I could insert .ASP pages, so it's hard to
imagine this capability would have been removed in the
latest version. Does anyone familiar with FP2003 know
if I have to change some special settings to activate
this?

When you use Include Page to merge content into an ASP
page, the content gets merged when you save the page, and
any ASP code runs later, when a visitor requests the page.

So, there's no reason for the included file to have
a .asp filename extension.

When you save an include file that contains ASP code as
and .asp file, a visitor can browse it and cause the code
to execute in an environment you didn't plan for. This
could have unexpected and unfortunate results.

Of course, if you save the same file with a .htm
extension, a visitor can browse it without executing the
code, which means the visitor can run the browser's View
Source command and see your code. This can also have
unexpected and unfortunate results.

My recommendation, therefore, is to put all your
included content in one folder, such as lib, and then
clear the Allow Files To Be Browsed property for that
folder.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*==========----------
|\=======--------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/=======--------
*==========----------
 
Jim,

There should still be no reason why you can't use the FP Include Page
component with a page that has an extension .asp when including the content
into a .asp page.

I have run into few cases where the use .htm for an Include page that
contained ASP code, didn't work and the page had to be named .asp in order
for the code to execute correctly.

I haven't test this in FP2003 yet, but if this is indeed the case, then for
those of us that do a lot of ASP coding, FP2003 would not be a viable option

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
There is a workaround to inserting .asp page using the FP2003 Include page
component, which is to insert .htm page, then switch to code view and change
the filename to that of the .asp page.

This all but eliminates me being able to use FP2003 for any current or
future project development.

When I use .asp pages as includes, any code on in the include page can only
be executed with the page is included in a container page that contains the
remainder of the code needed for execution on the server.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
An alternative is to use Dynamic Web Templates
- except for the problems w/ updating all pages using DWT on a SE server without opening them
- but a VBA could cycle thru all your pages to do that
(-;
--




| There is a workaround to inserting .asp page using the FP2003 Include page
| component, which is to insert .htm page, then switch to code view and change
| the filename to that of the .asp page.
|
| This all but eliminates me being able to use FP2003 for any current or
| future project development.
|
| When I use .asp pages as includes, any code on in the include page can only
| be executed with the page is included in a container page that contains the
| remainder of the code needed for execution on the server.
|
| --
|
| ==============================================
| Thomas A. Rowe (Microsoft MVP - FrontPage)
| WEBMASTER Resources(tm)
|
| FrontPage Resources, Forums, WebCircle,
| MS KB Quick Links, etc.
| ==============================================
| To assist you in getting the best answers for FrontPage support see:
| http://www.net-sites.com/sitebuilder/newsgroups.asp
|
| | > Jim,
| >
| > There should still be no reason why you can't use the FP Include Page
| > component with a page that has an extension .asp when including the
| content
| > into a .asp page.
| >
| > I have run into few cases where the use .htm for an Include page that
| > contained ASP code, didn't work and the page had to be named .asp in order
| > for the code to execute correctly.
| >
| > I haven't test this in FP2003 yet, but if this is indeed the case, then
| for
| > those of us that do a lot of ASP coding, FP2003 would not be a viable
| option
| >
| > --
| >
| > ==============================================
| > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > WEBMASTER Resources(tm)
| >
| > FrontPage Resources, Forums, WebCircle,
| > MS KB Quick Links, etc.
| > ==============================================
| > To assist you in getting the best answers for FrontPage support see:
| > http://www.net-sites.com/sitebuilder/newsgroups.asp
| >
| > | > > >-----Original Message-----
| > > >I'm trying the new FP2003 and have come across an odd
| > > >issue. When inserting an Include Page, it will not let
| > > >me select a .ASP page to include, only a .HTM page. In
| > > >FP2000 I could insert .ASP pages, so it's hard to
| > > >imagine this capability would have been removed in the
| > > >latest version. Does anyone familiar with FP2003 know
| > > >if I have to change some special settings to activate
| > > >this?
| > >
| > > When you use Include Page to merge content into an ASP
| > > page, the content gets merged when you save the page, and
| > > any ASP code runs later, when a visitor requests the page.
| > >
| > > So, there's no reason for the included file to have
| > > a .asp filename extension.
| > >
| > > When you save an include file that contains ASP code as
| > > and .asp file, a visitor can browse it and cause the code
| > > to execute in an environment you didn't plan for. This
| > > could have unexpected and unfortunate results.
| > >
| > > Of course, if you save the same file with a .htm
| > > extension, a visitor can browse it without executing the
| > > code, which means the visitor can run the browser's View
| > > Source command and see your code. This can also have
| > > unexpected and unfortunate results.
| > >
| > > My recommendation, therefore, is to put all your
| > > included content in one folder, such as lib, and then
| > > clear the Allow Files To Be Browsed property for that
| > > folder.
| > >
| > > Jim Buyens
| > > Microsoft FrontPage MVP
| > > http://www.interlacken.com
| > > Author of:
| > > *==========----------
| > > |\=======--------
| > > || Microsoft Office FrontPage 2003 Inside Out
| > > || Microsoft FrontPage Version 2002 Inside Out
| > > || Web Database Development Step by Step .NET Edition
| > > || Troubleshooting Microsoft FrontPage 2002
| > > || Faster Smarter Beginning Programming
| > > || (All from Microsoft Press)
| > > |/=======--------
| > > *==========----------
| > >
| >
| >
|
|
 
I take the last part back
"- but a VBA could cycle thru all your pages to do that"

Even VBA in an online FP 2002 SE web does not trigger the DWT update events correctly
- it triggers it fine programmatically in a Disc based web
--




| An alternative is to use Dynamic Web Templates
| - except for the problems w/ updating all pages using DWT on a SE server without opening them
| - but a VBA could cycle thru all your pages to do that
| (-;
| --
|
| _____________________________________________
| 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.net-sites.com/sitebuilder/newsgroups.asp
| _____________________________________________
|
|
| | There is a workaround to inserting .asp page using the FP2003 Include page
| | component, which is to insert .htm page, then switch to code view and change
| | the filename to that of the .asp page.
| |
| | This all but eliminates me being able to use FP2003 for any current or
| | future project development.
| |
| | When I use .asp pages as includes, any code on in the include page can only
| | be executed with the page is included in a container page that contains the
| | remainder of the code needed for execution on the server.
| |
| | --
| |
| | ==============================================
| | Thomas A. Rowe (Microsoft MVP - FrontPage)
| | WEBMASTER Resources(tm)
| |
| | FrontPage Resources, Forums, WebCircle,
| | MS KB Quick Links, etc.
| | ==============================================
| | To assist you in getting the best answers for FrontPage support see:
| | http://www.net-sites.com/sitebuilder/newsgroups.asp
| |
| | | | > Jim,
| | >
| | > There should still be no reason why you can't use the FP Include Page
| | > component with a page that has an extension .asp when including the
| | content
| | > into a .asp page.
| | >
| | > I have run into few cases where the use .htm for an Include page that
| | > contained ASP code, didn't work and the page had to be named .asp in order
| | > for the code to execute correctly.
| | >
| | > I haven't test this in FP2003 yet, but if this is indeed the case, then
| | for
| | > those of us that do a lot of ASP coding, FP2003 would not be a viable
| | option
| | >
| | > --
| | >
| | > ==============================================
| | > Thomas A. Rowe (Microsoft MVP - FrontPage)
| | > WEBMASTER Resources(tm)
| | >
| | > FrontPage Resources, Forums, WebCircle,
| | > MS KB Quick Links, etc.
| | > ==============================================
| | > To assist you in getting the best answers for FrontPage support see:
| | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| | >
| | > | | > > >-----Original Message-----
| | > > >I'm trying the new FP2003 and have come across an odd
| | > > >issue. When inserting an Include Page, it will not let
| | > > >me select a .ASP page to include, only a .HTM page. In
| | > > >FP2000 I could insert .ASP pages, so it's hard to
| | > > >imagine this capability would have been removed in the
| | > > >latest version. Does anyone familiar with FP2003 know
| | > > >if I have to change some special settings to activate
| | > > >this?
| | > >
| | > > When you use Include Page to merge content into an ASP
| | > > page, the content gets merged when you save the page, and
| | > > any ASP code runs later, when a visitor requests the page.
| | > >
| | > > So, there's no reason for the included file to have
| | > > a .asp filename extension.
| | > >
| | > > When you save an include file that contains ASP code as
| | > > and .asp file, a visitor can browse it and cause the code
| | > > to execute in an environment you didn't plan for. This
| | > > could have unexpected and unfortunate results.
| | > >
| | > > Of course, if you save the same file with a .htm
| | > > extension, a visitor can browse it without executing the
| | > > code, which means the visitor can run the browser's View
| | > > Source command and see your code. This can also have
| | > > unexpected and unfortunate results.
| | > >
| | > > My recommendation, therefore, is to put all your
| | > > included content in one folder, such as lib, and then
| | > > clear the Allow Files To Be Browsed property for that
| | > > folder.
| | > >
| | > > Jim Buyens
| | > > Microsoft FrontPage MVP
| | > > http://www.interlacken.com
| | > > Author of:
| | > > *==========----------
| | > > |\=======--------
| | > > || Microsoft Office FrontPage 2003 Inside Out
| | > > || Microsoft FrontPage Version 2002 Inside Out
| | > > || Web Database Development Step by Step .NET Edition
| | > > || Troubleshooting Microsoft FrontPage 2002
| | > > || Faster Smarter Beginning Programming
| | > > || (All from Microsoft Press)
| | > > |/=======--------
| | > > *==========----------
| | > >
| | >
| | >
| |
| |
|
|
 
The alternative is not the use of the DWT, which is useless if you work with
the FP2000/2002 extensions or you have multiple authors running
FP2000/FP2002 client applications.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Agree, multiple authors works (if the DWT is in the web)
but the DWT w/ the SE doesn't work

--




| The alternative is not the use of the DWT, which is useless if you work with
| the FP2000/2002 extensions or you have multiple authors running
| FP2000/FP2002 client applications.
|
| --
|
| ==============================================
| Thomas A. Rowe (Microsoft MVP - FrontPage)
| WEBMASTER Resources(tm)
|
| FrontPage Resources, Forums, WebCircle,
| MS KB Quick Links, etc.
| ==============================================
| To assist you in getting the best answers for FrontPage support see:
| http://www.net-sites.com/sitebuilder/newsgroups.asp
|
| | > An alternative is to use Dynamic Web Templates
| > - except for the problems w/ updating all pages using DWT on a SE server
| without opening them
| > - but a VBA could cycle thru all your pages to do that
| > (-;
| > --
| >
| > _____________________________________________
| > 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.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | There is a workaround to inserting .asp page using the FP2003 Include
| page
| > | component, which is to insert .htm page, then switch to code view and
| change
| > | the filename to that of the .asp page.
| > |
| > | This all but eliminates me being able to use FP2003 for any current or
| > | future project development.
| > |
| > | When I use .asp pages as includes, any code on in the include page can
| only
| > | be executed with the page is included in a container page that contains
| the
| > | remainder of the code needed for execution on the server.
| > |
| > | --
| > |
| > | ==============================================
| > | Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | WEBMASTER Resources(tm)
| > |
| > | FrontPage Resources, Forums, WebCircle,
| > | MS KB Quick Links, etc.
| > | ==============================================
| > | To assist you in getting the best answers for FrontPage support see:
| > | http://www.net-sites.com/sitebuilder/newsgroups.asp
| > |
| > | | > | > Jim,
| > | >
| > | > There should still be no reason why you can't use the FP Include Page
| > | > component with a page that has an extension .asp when including the
| > | content
| > | > into a .asp page.
| > | >
| > | > I have run into few cases where the use .htm for an Include page that
| > | > contained ASP code, didn't work and the page had to be named .asp in
| order
| > | > for the code to execute correctly.
| > | >
| > | > I haven't test this in FP2003 yet, but if this is indeed the case,
| then
| > | for
| > | > those of us that do a lot of ASP coding, FP2003 would not be a viable
| > | option
| > | >
| > | > --
| > | >
| > | > ==============================================
| > | > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > WEBMASTER Resources(tm)
| > | >
| > | > FrontPage Resources, Forums, WebCircle,
| > | > MS KB Quick Links, etc.
| > | > ==============================================
| > | > To assist you in getting the best answers for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | >
| > | > | > | > > >-----Original Message-----
| > | > > >I'm trying the new FP2003 and have come across an odd
| > | > > >issue. When inserting an Include Page, it will not let
| > | > > >me select a .ASP page to include, only a .HTM page. In
| > | > > >FP2000 I could insert .ASP pages, so it's hard to
| > | > > >imagine this capability would have been removed in the
| > | > > >latest version. Does anyone familiar with FP2003 know
| > | > > >if I have to change some special settings to activate
| > | > > >this?
| > | > >
| > | > > When you use Include Page to merge content into an ASP
| > | > > page, the content gets merged when you save the page, and
| > | > > any ASP code runs later, when a visitor requests the page.
| > | > >
| > | > > So, there's no reason for the included file to have
| > | > > a .asp filename extension.
| > | > >
| > | > > When you save an include file that contains ASP code as
| > | > > and .asp file, a visitor can browse it and cause the code
| > | > > to execute in an environment you didn't plan for. This
| > | > > could have unexpected and unfortunate results.
| > | > >
| > | > > Of course, if you save the same file with a .htm
| > | > > extension, a visitor can browse it without executing the
| > | > > code, which means the visitor can run the browser's View
| > | > > Source command and see your code. This can also have
| > | > > unexpected and unfortunate results.
| > | > >
| > | > > My recommendation, therefore, is to put all your
| > | > > included content in one folder, such as lib, and then
| > | > > clear the Allow Files To Be Browsed property for that
| > | > > folder.
| > | > >
| > | > > Jim Buyens
| > | > > Microsoft FrontPage MVP
| > | > > http://www.interlacken.com
| > | > > Author of:
| > | > > *==========----------
| > | > > |\=======--------
| > | > > || Microsoft Office FrontPage 2003 Inside Out
| > | > > || Microsoft FrontPage Version 2002 Inside Out
| > | > > || Web Database Development Step by Step .NET Edition
| > | > > || Troubleshooting Microsoft FrontPage 2002
| > | > > || Faster Smarter Beginning Programming
| > | > > || (All from Microsoft Press)
| > | > > |/=======--------
| > | > > *==========----------
| > | > >
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
Thomas, I tried your suggestion but found that even that
does not work.

I am able to edit the file name in code view to list
the .asp page that I want. If I then look at the page in
design mode, I can see my included .asp page appear, and
I can save the document.

But when I try to view the page in a browser, I get the
error:

Active Server Pages error 'ASP 0126'
Include file not found
The include file '../_fpclass/fpdblib.inc' was not found.

I have the same error when I put all of my .asp code in a
document that I save as .htm, and then use the normal
include page function to place the .htm page (which is
actually full of .asp code) in my document.

The error above almost makes it seem like a server
problem or some kind of resource incompatibility between
FP2003 and previous versions. Could the issue be that I
am trying to use FP2003 to edit an existing Web created
in FP2000 and running on Windows Server 2000?

If this really is the way FP2003 is supposed to work, I
will not be able to use it.
 
Paul,

ASP 126 error is a ASP error, not an FP error, it just means that the
fpdblib.inc can not be found via the path indicated. You should be able to
easily fix this, by opening your page and then open the _fpclass folder,
drag the fpdblib.inc file into a blank area on your page, switch to code
view, copy and paste the path to overwrite the existing path to the
fpdblib.inc file, then delete the link you create when you drag the file
into your page.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
The DWT is not accessible, even in a disk-based web, unless all users are
using FP2003.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================


Stefan B Rusynko said:
Agree, multiple authors works (if the DWT is in the web)
but the DWT w/ the SE doesn't work

--




| The alternative is not the use of the DWT, which is useless if you work with
| the FP2000/2002 extensions or you have multiple authors running
| FP2000/FP2002 client applications.
|
| --
|
| ==============================================
| Thomas A. Rowe (Microsoft MVP - FrontPage)
| WEBMASTER Resources(tm)
|
| FrontPage Resources, Forums, WebCircle,
| MS KB Quick Links, etc.
| ==============================================
| To assist you in getting the best answers for FrontPage support see:
| http://www.net-sites.com/sitebuilder/newsgroups.asp
|
| | > An alternative is to use Dynamic Web Templates
| > - except for the problems w/ updating all pages using DWT on a SE server
| without opening them
| > - but a VBA could cycle thru all your pages to do that
| > (-;
| > --
| >
| > _____________________________________________
| > 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.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | There is a workaround to inserting .asp page using the FP2003 Include
| page
| > | component, which is to insert .htm page, then switch to code view and
| change
| > | the filename to that of the .asp page.
| > |
| > | This all but eliminates me being able to use FP2003 for any current or
| > | future project development.
| > |
| > | When I use .asp pages as includes, any code on in the include page can
| only
| > | be executed with the page is included in a container page that contains
| the
| > | remainder of the code needed for execution on the server.
| > |
| > | --
| > |
| > | ==============================================
| > | Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | WEBMASTER Resources(tm)
| > |
| > | FrontPage Resources, Forums, WebCircle,
| > | MS KB Quick Links, etc.
| > | ==============================================
| > | To assist you in getting the best answers for FrontPage support see:
| > | http://www.net-sites.com/sitebuilder/newsgroups.asp
| > |
| > | | > | > Jim,
| > | >
| > | > There should still be no reason why you can't use the FP Include Page
| > | > component with a page that has an extension .asp when including the
| > | content
| > | > into a .asp page.
| > | >
| > | > I have run into few cases where the use .htm for an Include page that
| > | > contained ASP code, didn't work and the page had to be named .asp in
| order
| > | > for the code to execute correctly.
| > | >
| > | > I haven't test this in FP2003 yet, but if this is indeed the case,
| then
| > | for
| > | > those of us that do a lot of ASP coding, FP2003 would not be a viable
| > | option
| > | >
| > | > --
| > | >
| > | > ==============================================
| > | > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > WEBMASTER Resources(tm)
| > | >
| > | > FrontPage Resources, Forums, WebCircle,
| > | > MS KB Quick Links, etc.
| > | > ==============================================
| > | > To assist you in getting the best answers for FrontPage support see:
| > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | >
| > | > | > | > > >-----Original Message-----
| > | > > >I'm trying the new FP2003 and have come across an odd
| > | > > >issue. When inserting an Include Page, it will not let
| > | > > >me select a .ASP page to include, only a .HTM page. In
| > | > > >FP2000 I could insert .ASP pages, so it's hard to
| > | > > >imagine this capability would have been removed in the
| > | > > >latest version. Does anyone familiar with FP2003 know
| > | > > >if I have to change some special settings to activate
| > | > > >this?
| > | > >
| > | > > When you use Include Page to merge content into an ASP
| > | > > page, the content gets merged when you save the page, and
| > | > > any ASP code runs later, when a visitor requests the page.
| > | > >
| > | > > So, there's no reason for the included file to have
| > | > > a .asp filename extension.
| > | > >
| > | > > When you save an include file that contains ASP code as
| > | > > and .asp file, a visitor can browse it and cause the code
| > | > > to execute in an environment you didn't plan for. This
| > | > > could have unexpected and unfortunate results.
| > | > >
| > | > > Of course, if you save the same file with a .htm
| > | > > extension, a visitor can browse it without executing the
| > | > > code, which means the visitor can run the browser's View
| > | > > Source command and see your code. This can also have
| > | > > unexpected and unfortunate results.
| > | > >
| > | > > My recommendation, therefore, is to put all your
| > | > > included content in one folder, such as lib, and then
| > | > > clear the Allow Files To Be Browsed property for that
| > | > > folder.
| > | > >
| > | > > Jim Buyens
| > | > > Microsoft FrontPage MVP
| > | > > http://www.interlacken.com
| > | > > Author of:
| > | > > *==========----------
| > | > > |\=======--------
| > | > > || Microsoft Office FrontPage 2003 Inside Out
| > | > > || Microsoft FrontPage Version 2002 Inside Out
| > | > > || Web Database Development Step by Step .NET Edition
| > | > > || Troubleshooting Microsoft FrontPage 2002
| > | > > || Faster Smarter Beginning Programming
| > | > > || (All from Microsoft Press)
| > | > > |/=======--------
| > | > > *==========----------
| > | > >
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
Thomas A. Rowe said:
Jim,

There should still be no reason why you can't use the FP Include Page
component with a page that has an extension .asp when including the content
into a .asp page.

I have run into few cases where the use .htm for an Include page that
contained ASP code, didn't work and the page had to be named .asp in order
for the code to execute correctly.

I haven't test this in FP2003 yet, but if this is indeed the case, then for
those of us that do a lot of ASP coding, FP2003 would not be a viable option

Well, here's the behavior I observed.

1. Open a new blank page.
2. Save it as new_page_1.asp.
3. Choose Web Component from the Insert menu,
then Included Content, then Page.
4. Click Finish.
5. When the Include Page Properties dialog box appears,
click Browse, then select any ASP page.
6. Click OK and OK.
7. FrontPage displays a message box saying:
You cannot include Active Server Pages
(*.asp or .aspx files) in this page.
Please choose an HTML file.

I'm not totally sure what problem this restriction is supposed to
solve, but I presume it's security-related.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*========----------
|\=========------------
|| Microsoft Office FrontPage 2003 Inside Out
|| Microsoft FrontPage Version 2002 Inside Out
|| Web Database Development Step by Step .NET Edition
|| Troubleshooting Microsoft FrontPage 2002
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/=========------------
*========----------
 
Jim,

I get the same message, however I see no security issues. It also seems the
process of inserting a Include Page is longer under FP2003,

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
That's true

--




| The DWT is not accessible, even in a disk-based web, unless all users are
| using FP2003.
|
| --
|
| ==============================================
| Thomas A. Rowe (Microsoft MVP - FrontPage)
| WEBMASTER Resources(tm)
|
| FrontPage Resources, Forums, WebCircle,
| MS KB Quick Links, etc.
| ==============================================
| To assist you in getting the best answers for FrontPage support see:
| http://www.net-sites.com/sitebuilder/newsgroups.asp
|
| | > Agree, multiple authors works (if the DWT is in the web)
| > but the DWT w/ the SE doesn't work
| >
| > --
| >
| > _____________________________________________
| > 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.net-sites.com/sitebuilder/newsgroups.asp
| > _____________________________________________
| >
| >
| | > | The alternative is not the use of the DWT, which is useless if you work
| with
| > | the FP2000/2002 extensions or you have multiple authors running
| > | FP2000/FP2002 client applications.
| > |
| > | --
| > |
| > | ==============================================
| > | Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | WEBMASTER Resources(tm)
| > |
| > | FrontPage Resources, Forums, WebCircle,
| > | MS KB Quick Links, etc.
| > | ==============================================
| > | To assist you in getting the best answers for FrontPage support see:
| > | http://www.net-sites.com/sitebuilder/newsgroups.asp
| > |
| > | | > | > An alternative is to use Dynamic Web Templates
| > | > - except for the problems w/ updating all pages using DWT on a SE
| server
| > | without opening them
| > | > - but a VBA could cycle thru all your pages to do that
| > | > (-;
| > | > --
| > | >
| > | > _____________________________________________
| > | > 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.net-sites.com/sitebuilder/newsgroups.asp
| > | > _____________________________________________
| > | >
| > | >
| > | | > | > | There is a workaround to inserting .asp page using the FP2003
| Include
| > | page
| > | > | component, which is to insert .htm page, then switch to code view
| and
| > | change
| > | > | the filename to that of the .asp page.
| > | > |
| > | > | This all but eliminates me being able to use FP2003 for any current
| or
| > | > | future project development.
| > | > |
| > | > | When I use .asp pages as includes, any code on in the include page
| can
| > | only
| > | > | be executed with the page is included in a container page that
| contains
| > | the
| > | > | remainder of the code needed for execution on the server.
| > | > |
| > | > | --
| > | > |
| > | > | ==============================================
| > | > | Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > | WEBMASTER Resources(tm)
| > | > |
| > | > | FrontPage Resources, Forums, WebCircle,
| > | > | MS KB Quick Links, etc.
| > | > | ==============================================
| > | > | To assist you in getting the best answers for FrontPage support see:
| > | > | http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > |
| > | > | | > | > | > Jim,
| > | > | >
| > | > | > There should still be no reason why you can't use the FP Include
| Page
| > | > | > component with a page that has an extension .asp when including
| the
| > | > | content
| > | > | > into a .asp page.
| > | > | >
| > | > | > I have run into few cases where the use .htm for an Include page
| that
| > | > | > contained ASP code, didn't work and the page had to be named .asp
| in
| > | order
| > | > | > for the code to execute correctly.
| > | > | >
| > | > | > I haven't test this in FP2003 yet, but if this is indeed the case,
| > | then
| > | > | for
| > | > | > those of us that do a lot of ASP coding, FP2003 would not be a
| viable
| > | > | option
| > | > | >
| > | > | > --
| > | > | >
| > | > | > ==============================================
| > | > | > Thomas A. Rowe (Microsoft MVP - FrontPage)
| > | > | > WEBMASTER Resources(tm)
| > | > | >
| > | > | > FrontPage Resources, Forums, WebCircle,
| > | > | > MS KB Quick Links, etc.
| > | > | > ==============================================
| > | > | > To assist you in getting the best answers for FrontPage support
| see:
| > | > | > http://www.net-sites.com/sitebuilder/newsgroups.asp
| > | > | >
| message
| > | > | > | > | > | > > >-----Original Message-----
| > | > | > > >I'm trying the new FP2003 and have come across an odd
| > | > | > > >issue. When inserting an Include Page, it will not let
| > | > | > > >me select a .ASP page to include, only a .HTM page. In
| > | > | > > >FP2000 I could insert .ASP pages, so it's hard to
| > | > | > > >imagine this capability would have been removed in the
| > | > | > > >latest version. Does anyone familiar with FP2003 know
| > | > | > > >if I have to change some special settings to activate
| > | > | > > >this?
| > | > | > >
| > | > | > > When you use Include Page to merge content into an ASP
| > | > | > > page, the content gets merged when you save the page, and
| > | > | > > any ASP code runs later, when a visitor requests the page.
| > | > | > >
| > | > | > > So, there's no reason for the included file to have
| > | > | > > a .asp filename extension.
| > | > | > >
| > | > | > > When you save an include file that contains ASP code as
| > | > | > > and .asp file, a visitor can browse it and cause the code
| > | > | > > to execute in an environment you didn't plan for. This
| > | > | > > could have unexpected and unfortunate results.
| > | > | > >
| > | > | > > Of course, if you save the same file with a .htm
| > | > | > > extension, a visitor can browse it without executing the
| > | > | > > code, which means the visitor can run the browser's View
| > | > | > > Source command and see your code. This can also have
| > | > | > > unexpected and unfortunate results.
| > | > | > >
| > | > | > > My recommendation, therefore, is to put all your
| > | > | > > included content in one folder, such as lib, and then
| > | > | > > clear the Allow Files To Be Browsed property for that
| > | > | > > folder.
| > | > | > >
| > | > | > > Jim Buyens
| > | > | > > Microsoft FrontPage MVP
| > | > | > > http://www.interlacken.com
| > | > | > > Author of:
| > | > | > > *==========----------
| > | > | > > |\=======--------
| > | > | > > || Microsoft Office FrontPage 2003 Inside Out
| > | > | > > || Microsoft FrontPage Version 2002 Inside Out
| > | > | > > || Web Database Development Step by Step .NET Edition
| > | > | > > || Troubleshooting Microsoft FrontPage 2002
| > | > | > > || Faster Smarter Beginning Programming
| > | > | > > || (All from Microsoft Press)
| > | > | > > |/=======--------
| > | > | > > *==========----------
| > | > | > >
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
 
Hi Thomas,

It should still be available in FrontPage 2003. Did you change your
Authoring settings?

-John
 
You need to have Author time web components allowed.

Are you seeing all include content grayed out, or just Include Pages?

Maybe I'm misunderstanding something here.

-John
 
John:

Jim Buyens wrote:

"Well, here's the behavior I observed.

1. Open a new blank page.
2. Save it as new_page_1.asp.
3. Choose Web Component from the Insert menu, then Included Content, then
Page.
4. Click Finish.
5. When the Include Page Properties dialog box appears, click Browse, then
select any ASP page.
6. Click OK and OK.
7. FrontPage displays a message box saying:
You cannot include Active Server Pages
(*.asp or .aspx files) in this page.
Please choose an HTML file."

This is the behavior I am observing as well. You can select as ASP page to
include, but when you click OK, FrontPage won't let you include it.

--

~ Kathleen Anderson
Microsoft FrontPage MVP
Spider Web Woman Designs
http://www.spiderwebwoman.com/resources/
 
John,

I think you are misunderstanding the issue.

The issue is that using the FP2003 Include Page Component, you are only
allowed to include pages that have a .htm or .html file extension. In FP2000
or FP2002 you are not limited to only including pages with .htm or .html
file extensions.

However you can include any .htm or html file, then switch to code view and
change the file name to that actual file that want to include, you just
can't do it directly in Normal view.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
Oh jeeze,

Yeah, I misunderstood. This looks like an issue that needs to be
re-evaluated. I'm going to talk to the PM about this change. Your
workaround is correct: include an HTM page and then change it in code view.

As I look at the issue, it was disabled because including ASP/ASPX inside an
HTM page is a security risk; but it looks to me like the fix was too
stringent.

As an alternative work around, I would also recommend using actual ASP
include syntax rather than our bot for including ASP code:

<!-- #include file="foo.asp" -->

-John
 
Back
Top