473,406 Members | 2,894 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Put a variable in the <!-- --> directive

Dear All,

The following script is generated by frontpage itself in order to insert
menu.htm in the current .htm page:

<body>
:
<!--webbot bot="Include" U-Include="menu.htm" TAG="BODY" -->
:
</body>

I tried to change the "menu.htm" to a variable using asp like:

<%
menu=request("menu")
%>
<!--webbot bot="Include" U-Include="<%=menu%>" TAG="BODY" -->

But it doesn't work, I search from the net and explain it will not work
because the directive executes before asp assigns a value to the variable,
but there is no solution, can anyone help? Thanks a lot.

Regards,
Baffin
Jul 19 '05 #1
3 2914
This only runs at "design time" within the FrontPage Evironment. The
file included is already inserted into the position before the file is
uploaded to the server. The server has no part in the process.
--

Phillip Windell [CCNA, MVP, MCP]
pw******@wandtv.com
WAND-TV (ABC Affiliate)
www.wandtv.com

"Baffin Shea" <ba****@shea.com> wrote in message
news:3f******@newsgate.hknet.com...
Dear All,

The following script is generated by frontpage itself in order to insert menu.htm in the current .htm page:

<body>
:
<!--webbot bot="Include" U-Include="menu.htm" TAG="BODY" -->
:
</body>

I tried to change the "menu.htm" to a variable using asp like:

<%
menu=request("menu")
%>
<!--webbot bot="Include" U-Include="<%=menu%>" TAG="BODY" -->

But it doesn't work, I search from the net and explain it will not work because the directive executes before asp assigns a value to the variable, but there is no solution, can anyone help? Thanks a lot.

Regards,
Baffin

Jul 19 '05 #2
Dear Jason,

I have tried your method, it doesn't work, any suggestion? Thank you.

Regards,
Baffin

"Jason Melville" <po******@ihug.com.au> ¼¶¼g©ó¶l¥ó·s»D
:bj**********@lust.ihug.co.nz...
Hi Baffin

Why not write the whole lot out as asp - see below?

<%

menu = request("menu")
response.write "<!--webbot bot='Include' U-Include='" & menu & "'
TAG='BODY'-->"

%>
"Baffin Shea" <ba****@shea.com> wrote in message
news:3f******@newsgate.hknet.com...
Dear All,

The following script is generated by frontpage itself in order to insert
menu.htm in the current .htm page:

<body>
:
<!--webbot bot="Include" U-Include="menu.htm" TAG="BODY" -->
:
</body>

I tried to change the "menu.htm" to a variable using asp like:

<%
menu=request("menu")
%>
<!--webbot bot="Include" U-Include="<%=menu%>" TAG="BODY" -->

But it doesn't work, I search from the net and explain it will not work
because the directive executes before asp assigns a value to the variable, but there is no solution, can anyone help? Thanks a lot.

Regards,
Baffin


Jul 19 '05 #3
I am not completely sure (we drove a stake through the heart of FP here
years ago) but I think that FP actually processes the webbot directives when
an HTML file is uploaded through FP, not at runtime. If that is not the
case, you could write out the HMTL file with the webbot directives you need
and then re-direct to that file.

--
Mark Schupp
--
Head of Development
Integrity eLearning
Online Learning Solutions Provider
ms*****@ielearning.com
http://www.ielearning.com
714.637.9480 x17
"Baffin Shea" <ba****@shea.com> wrote in message
news:3f********@newsgate.hknet.com...
Dear Jason,

I have tried your method, it doesn't work, any suggestion? Thank you.

Regards,
Baffin

"Jason Melville" <po******@ihug.com.au> ¼¶¼g©ó¶l¥ó·s»D
:bj**********@lust.ihug.co.nz...
Hi Baffin

Why not write the whole lot out as asp - see below?

<%

menu = request("menu")
response.write "<!--webbot bot='Include' U-Include='" & menu & "'
TAG='BODY'-->"

%>
"Baffin Shea" <ba****@shea.com> wrote in message
news:3f******@newsgate.hknet.com...
Dear All,

The following script is generated by frontpage itself in order to insert menu.htm in the current .htm page:

<body>
:
<!--webbot bot="Include" U-Include="menu.htm" TAG="BODY" -->
:
</body>

I tried to change the "menu.htm" to a variable using asp like:

<%
menu=request("menu")
%>
<!--webbot bot="Include" U-Include="<%=menu%>" TAG="BODY" -->

But it doesn't work, I search from the net and explain it will not work because the directive executes before asp assigns a value to the variable, but there is no solution, can anyone help? Thanks a lot.

Regards,
Baffin



Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
9
by: bill | last post by:
Forget the exact definition of difference between, #include <foo.h> and #include "bar.h" Normally foo.h is a standard header file, so it's path is not defined in compiler option, but I...
2
by: Martin Hvidberg | last post by:
Dear list I have found a declaration like this: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #include "ectemp.h"
1
by: su | last post by:
Any tag available in asp.net that is same as <%@Assembly Src="XXX.cs" %> directive available in webservices to load the assembly from source code files ?
3
by: artifact.one | last post by:
Hi. What's the practical difference between: #include <header.h> and: #include "header.h"
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
13
by: Sebastian Faust | last post by:
Hi, I hava a somehow strange problem. I hope I am not wrong in this group; if this is the case please let me know. I am trying to compile a rather simple C program. As long as I use: #include...
3
by: Dylan Nicholson | last post by:
Can someone confirm that a) is illegal, and b) the solution? a) namespace Test { struct MyStruct { int a; int b;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.