FP98: How to Use the Navigation Bar to Link to Pages Outside Web

ID: Q183508


The information in this article applies to:
  • Microsoft FrontPage 98 for Windows

WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

SUMMARY

This article describes how to use the navigation bar in FrontPage to link to pages outside you current FrontPage Web.


MORE INFORMATION

You can only include pages from the current FrontPage Web in the navigational structure of your Web. However, you can redirect a page in the current Web to a page outside your current Web, by using one of the following methods.

Method 1: Use Active Server Pages to Redirect to Another Page

  1. Determine whether your Web server supports Active Server Pages (ASP) by following these steps:
    
    a. Open your Web in FrontPage Explorer.
    
        b. On the Tools menu, click Web Settings, and then click the
           Configuration tab.
    
        c. Find the Server Version section.  To use ASP, you must have one of
           the following Web servers installed.  If you do not see one of these
           servers in the list, use Method 2.
    
           - Microsoft-IIS/4.0
           - Microsoft-IIS/3.0
           - Microsoft-IIS/2.0
           - Microsoft-PWS-95/4.0
           - Microsoft-PWS-95/2.0
    
          NOTE: If you are using a Web server other than Microsoft Internet
          Information Server 4.0 or Microsoft Personal Web Server for Windows
          95 version 4.0, you will need to install the ASP engine on the Web
          server. For additional information about installing the ASP engine,
          please see the following article in the Microsoft Knowledge Base: 
    Q174185 FP98: ASP Code Displayed in Browser


  2. Create a cgi-bin folder. If you already have a cgi-bin folder in your Web, go to step 3.
    
    a. In FrontPage Explorer, click Folders on the View menu.
    
        b. Open the root folder of your Web. On the File menu, point to New,
           and then click Folder.
    
        c. Name it cgi-bin and press Enter. 


  3. Make the cgi-bin folder executable by following these steps:
    
    a. Right-click the cgi-bin folder and then click Properties on the menu
           that appears.
    
        b. Click to select the "Allow scripts to be run" check box. Click OK. 


  4. Create the ASP page.
    
    a. In Folders view, open the cgi-bin folder.
    
        b. Click the New Page button on the toolbar.  Name it Link.asp and
           press Enter.
    
        c. Double-click Link.asp to open it in FrontPage Editor.
    
        d. Click the HTML tab at the bottom of the FrontPage Editor window.
    
        e. Place the insertion point on a line by itself above the <HTML> tag
           at the top of the page.
    
        f. Type the following ASP code
    
              <% Response.Redirect("http://Server/Page.htm") %>
    
           where "http://Server/Page.htm" is the absolute Uniform Resource
           Locator (URL) of the page you want to link to.
    
        g. Save and close the page. 


  5. Add the newly created ASP page to the navigation structure of your Web.
    
    a. In FrontPage Explorer, click Navigation on the View menu.
    
        b. In the Files pane (at the bottom of the screen in Navigation View),
           open the cgi-bin folder.
    
        c. Drag the Link.asp page to the position you want it in the navigation
           structure.  For example, make it a child page of your home page. 


  6. Preview your home page in a Web browser and follow the link in the Navigation bar.


Method 2: Use a System Variable to Redirect to Another Page

  1. Create a new page in FrontPage Explorer.
    
    a. On the View menu, click Folders and then open your Web.
    
        b. Click the New Page button on the toolbar.  Name the page Link.htm
           and press ENTER.
    
        c. Double-click Link.htm to open the page in FrontPage Editor.
    
        d. On the File menu, click Page Properties, and then click the Custom
           tab.
    
        e. In the System Variables (HTTP-EQUIV) section, click Add.
    
        f. In the Name box, type "refresh" (without the quotation marks).
    
        g. In the Value box, type "0; url=http://Server/Page.htm" (without the
           quotation marks) where http://Server/Page.htm is the absolute
           URL to the page you want to link to.
    
        h. Click OK two times.
    
        i. Save and close the page. 


  2. Add the newly created page to the navigation structure of your Web.
    
    a. In FrontPage Explorer, click Navigation on the View menu.
    
        b. Drag the Link.htm page to the position you want it in the navigation
           structure.  For example, make it a child page of your home page. 


  3. Preview your home page in a Web browser and follow the link in the Navigation bar.


For more information about navigation bars, click the Index tab in FrontPage Help, type the following text
overview, navigation
and then double-click the selected text to go to the "Using Navigation Bars and Shared Borders" topic.

Additional query words: 98 nav refresh redirect asp navbar

Keywords : kbdta fpexp
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: July 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.