Adding Navigation Controls

Open the master page in the designer. You see the availability of two buttons named Home and About. These are menu items inside a Menu control that simply point to the associated Web Form. You can add menu items to the menu by first clicking the smart tag (that is, the right arrow) and then clicking the Edit Menu Items link in the Menu Tasks pop-up dialog. This launches the Menu Item Editor, where you can add new menu items. Click the Add a Root Item button that is the first on the left. When the new item is added, set the Text property as Orders. (This also automatically sets the Value property.) Then click the NavigateUrl property and click the available button to associate a Web page. In the Select URL dialog, choose ...

Get Visual Basic® 2010 Unleashed 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.