Partager via


How to: Specify Start Pages for Testing Web Sites in Visual Web Developer

When you use the Start or Start Without Debugging commands to run a Web site, by default Visual Web Developer runs the page that currently has the focus in the designer. However, you can also set a start page, which is useful if you always want to start at the same point in your Web site. If you set a start page, using the Start or Start Without Debugging commands always runs the start page that you specified instead of the current page.

Note

Setting a start page in Visual Web Developer affects only your testing. It does not set the start page for the Web site when it is published. To specify a default start page for your Web site, use Internet Information Services (IIS) to enable a default document and select the page. For details, see the IIS documentation.

To specify a start page for testing a Web site in Visual Web Developer

  1. In Solution Explorer, right-click the name of the Web site that you want to specify as the start page, and then click Property Pages.

  2. In the Start Options tab, select the Specific page check box and then type or browse to the name of the page that you want to use as the start page.

-or-

  • In Solution Explorer, right-click the page that you want to specify as the start page, and then click Set As Start Page.

See Also

Tasks

How to: Test Web Pages in Visual Web Developer

Concepts

Testing Web Pages in Visual Web Developer