Microsoft KB Archive/183508

From BetaArchive Wiki

Article ID: 183508

Article Last Modified on 9/24/2001



APPLIES TO

  • Microsoft FrontPage 98 Standard Edition



This article was previously published under Q183508

SUMMARY

This article describes how to use the navigation bar in FrontPage to link to pages outside your 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). To do this, follow these steps:
    1. Open your Web in FrontPage Explorer.
    2. On the Tools menu, click Web Settings, and then click the Configuration tab.
    3. 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 from this 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, 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:

      174185 FP98: ASP Code Displayed in Browser

  2. Create a cgi-bin folder. If you already have a cgi-bin folder in your Web, skip to step 3.
    1. In FrontPage Explorer, click Folders on the View menu.
    2. Open the root folder of your Web. On the File menu, point to New, and then click Folder.
    3. Name it cgi-bin and press ENTER.
  3. Make the cgi-bin folder executable. To do this follow these steps:
    1. Right-click the cgi-bin folder and then click Properties on the menu that appears.
    2. Click to select the Allow scripts to be run check box. Click OK.
  4. Create the ASP page.
    1. In Folders view, open the cgi-bin folder.
    2. Click the New Page button on the toolbar. Name it Link.asp and press ENTER.
    3. Double-click Link.asp to open it in FrontPage Editor.
    4. Click the HTML tab at the bottom of the FrontPage Editor window.
    5. Place the insertion point on a line by itself above the <HTML> tag at the top of the page.
    6. 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.

    7. Save and close the page.
  5. Add the newly created ASP page to the navigation structure of your Web.
    1. In FrontPage Explorer, click Navigation on the View menu.
    2. In the Files pane (at the bottom of the screen in Navigation View), open the cgi-bin folder.
    3. Drag the Link.asp page to the position you want it in the navigational 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.
    1. On the View menu, click Folders and then open your Web.
    2. Click the New Page button on the toolbar. Name the page Link.htm and press ENTER.
    3. Double-click Link.htm to open the page in FrontPage Editor.
    4. On the File menu, click Page Properties, and then click the Custom tab.
    5. In the System Variables (HTTP-EQUIV) section, click Add.
    6. In the Name box, type refresh.
    7. In the Value box, type 0; url=http://Server/Page.htm where http://Server/Page.htm is the absolute URL to the page you want to link to.
    8. Click OK two times.
    9. Save and close the page.
  2. Add the newly created page to the navigation structure of your Web.
    1. In FrontPage Explorer, click Navigation on the View menu.
    2. 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: kbhowto KB183508