Visual InterDev

Mapping Multiple Pages to an .asp File

See Also

With Site Designer, you can quickly prototype a Web application without worrying about how you will use the pages in your site. For example, if you have added three .htm pages to your site diagram, you can later map these pages to an .asp file and have the navigation bars for the pages display correctly.

Site Designer allows you to map pages in a site diagram to a new or existing Active Server Page in the site structure file. You can also map several pages to an ASP page using different parameters.

Note   You cannot map an external page to a new or existing Active Server Page.

To map multiple pages to an ASP page

  1. In the site diagram, select the page you want to map to an .asp file.

  2. From the View menu, choose Property Pages.

    The Page Tab (Page Properties Dialog Box) appears.

  3. Select the Browse button.

    The Choose URL dialog box appears.

  4. In the Contents text box, select the .asp file to use.

  5. In the Parameters drop-down list, enter a parameter value.

  6. Click OK.

The navigation bar links will reflect that the selected page is a parameter of an .asp file and will link to it correctly.

Using the Choose URL dialog box does not add script to the .asp file. You must still add the appropriate script to the .asp file to get the .asp file to display the pages correctly.

For example, if you have mapped Books.htm and Clothes.htm to Products.asp as Type=Books and Type=Clothes, you would need to include the following script in Products.asp so that Books.htm and Clothes.htm would display properly.

<% Request.QueryString("Type")
Select Case "Books" %>
<% Case "Clothes" %>
<% End Select %>

For more information, search for "Request Object" in the index.