Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Put a variable in the <!-- --> directive

Reply
Thread Tools

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

 
 
Baffin Shea
Guest
Posts: n/a
 
      09-05-2003
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


 
Reply With Quote
 
 
 
 
Baffin Shea
Guest
Posts: n/a
 
      09-05-2003
Dear Jason,

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

Regards,
Baffin



"Jason Melville" <> 撰寫於郵件新聞
:bjacsb$olv$...
> 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" <> wrote in message
> news:...
> > 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
> >
> >

>
>



 
Reply With Quote
 
 
 
 
Phillip Windell
Guest
Posts: n/a
 
      09-05-2003
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]

WAND-TV (ABC Affiliate)
www.wandtv.com

"Baffin Shea" <> wrote in message
news:...
> 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
>
>



 
Reply With Quote
 
Mark Schupp
Guest
Posts: n/a
 
      09-05-2003
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

http://www.ielearning.com
714.637.9480 x17


"Baffin Shea" <> wrote in message
news:3f58d139$...
> Dear Jason,
>
> I have tried your method, it doesn't work, any suggestion? Thank you.
>
> Regards,
> Baffin
>
>
>
> "Jason Melville" <> 撰寫於郵件新聞
> :bjacsb$olv$...
> > 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" <> wrote in message
> > news:...
> > > 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
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using a variable within a JSP include directive Falk K鞿pe Java 4 05-19-2009 03:03 PM
why does the following with Queue, q.put('\x02', True) not put itin the queue? Gabriel Rossetti Python 3 04-25-2008 03:41 PM
"Variable variable name" or "variable lvalue" mfglinux Python 11 09-12-2007 03:08 AM
The 'Location' attribute is not supported by the 'OutPutCache' directive????when i set in the directive .NET Follower ASP .Net 1 02-13-2004 10:32 AM
Variable scope with Include Directive ??? Anthony Judd ASP General 2 07-07-2003 01:34 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57