7.3. Adding Pages to a Project

We can add a new Web Forms page to our project through the Add Web Form or Add New Item menu item under Project. (There is an Add New Item icon as well.) By default, each new page is called WebFormi.aspx, where i is a digit. This is why our second NorthWind page is called WebForm2.aspx.

By default, the first Web Forms page of the project is treated as the project start page. We can specify an alternative start page by setting the start-up page property of the project. To do this, click on the Properties menu item under Project. A Property Pages window displays as pictured in Figure 7.2. Enter the name of the page you wish to have displayed at start-up. (Note that you'll need to explicitly override the default for ...

Get C# Primer: A Practical Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.