: I tried to change the "menu.htm" to a variable using asp like: <% menu=request("menu") %> 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 [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <3f58b04b@newsgate.hknet.com> [ref] => [htmlstate] => on_nl2br [postusername] => Baffin Shea [ip] => baffin@shea.com [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 1 [islastshown] => [isfirstshown] => 1 [attachments] => [allattachments] => ) -->" > > %> > > > "Baffin Shea" wrote in message > news:3f58b04b@newsgate.hknet.com...[quote] > > Dear All, > > > > The following script is generated by frontpage itself in order to insert > > menu.htm in the current .htm page: > > > > > > : > > > > : > > > > > > I tried to change the "menu.htm" to a variable using asp like: > > > > <% > > menu=request("menu") > > %> > > > > > > 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[/quote][/quote] variable,[quote][quote] > > but there is no solution, can anyone help? Thanks a lot. > > > > Regards, > > Baffin > > > >[/quote] > >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => <3f58d139$1@newsgate.hknet.com> [ref] => <3f58b04b@newsgate.hknet.com> [htmlstate] => on_nl2br [postusername] => Baffin Shea [ip] => baffin@shea.com [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> > : > > > I tried to change the "menu.htm" to a variable using asp like: > > <% > menu=request("menu") > %> > > > But it doesn't work, I search from the net and explain it will not[/quote] work[quote] > because the directive executes before asp assigns a value to the[/quote] variable,[quote] > but there is no solution, can anyone help? Thanks a lot. > > Regards, > Baffin > >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => <3f58b04b@newsgate.hknet.com> [htmlstate] => on_nl2br [postusername] => Phillip Windell [ip] => pwindell@wandtv [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 3 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) -->" > > > > %> > > > > > > "Baffin Shea" wrote in message > > news:3f58b04b@newsgate.hknet.com...[quote] > > > Dear All, > > > > > > The following script is generated by frontpage itself in order to[/quote][/quote][/quote] insert[quote][quote][quote] > > > menu.htm in the current .htm page: > > > > > > > > > : > > > > > > : > > > > > > > > > I tried to change the "menu.htm" to a variable using asp like: > > > > > > <% > > > menu=request("menu") > > > %> > > > > > > > > > But it doesn't work, I search from the net and explain it will not[/quote][/quote][/quote] work[quote][quote][quote] > > > because the directive executes before asp assigns a value to the[/quote][/quote] > variable,[quote][quote] > > > but there is no solution, can anyone help? Thanks a lot. > > > > > > Regards, > > > Baffin > > > > > >[/quote] > > > >[/quote] > >[/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => <3f58b04b@newsgate.hknet.com> <3f58d139$1@newsgate.hknet.com> [htmlstate] => on_nl2br [postusername] => Mark Schupp [ip] => mschupp@ielearn [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 4 [islastshown] => 1 [isfirstshown] => [attachments] => [allattachments] => ) --> Put a variable in the <!-- --> directive - ASP

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

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...

  1. #1

    Default 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


    Baffin Shea Guest

  2. #2

    Default Re: Put a variable in the <!-- --> directive

    Dear Jason,

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

    Regards,
    Baffin



    "Jason Melville" <pookey20ihug.com.au> 撰寫於郵件新聞
    :bjacsb$olv$1lust.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" <baffinshea.com> wrote in message
    > news:3f58b04bnewsgate.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
    > >
    > >
    >
    >

    Baffin Shea Guest

  3. #3

    Default Re: Put a variable in the <!-- --> directive

    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]
    [email]pwindellwandtv.com[/email]
    WAND-TV (ABC Affiliate)
    [url]www.wandtv.com[/url]

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

    Phillip Windell Guest

  4. #4

    Default Re: Put a variable in the <!-- --> directive

    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
    [email]mschuppielearning.com[/email]
    [url]http://www.ielearning.com[/url]
    714.637.9480 x17


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

    Mark Schupp Guest

Similar Threads

  1. NullReferenceException With Different Register Directive
    By Marvin Massih in forum ASP.NET Building Controls
    Replies: 0
    Last Post: March 23rd, 10:23 AM
  2. only directive is displayed in browser
    By sm in forum ASP.NET Web Services
    Replies: 0
    Last Post: October 20th, 04:16 AM
  3. #include ssi directive / vs. \
    By Alwin in forum ASP
    Replies: 1
    Last Post: October 16th, 01:21 AM
  4. #25768 [NEW]: <IfModule *.c> directive
    By ebcom at free dot fr in forum PHP Development
    Replies: 0
    Last Post: October 6th, 09:08 PM
  5. Variable scope with Include Directive ???
    By Anthony Judd in forum ASP
    Replies: 2
    Last Post: July 7th, 01:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •