Creating a Navigation Control

You may want to have the navigation list, shown on the left in Figure 21.3, on more than just the main page in your application. You might want to display the list of links on the left, with content filling the rest of the page.

To accomplish this goal, you might create a table on each page, with the navigation information in the first column and the rest of the content filling the second column of the table. In addition, it seems like a user control would be the simplest way to use the same set of links on all the pages of your application.

In this section, you'll create a new user control containing all the links from Main.aspx and then modify Main.aspx to take advantage of the new user control. Along the way, ...

Get ASP.NET Developer's JumpStart 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.