03.11.2016 Views

Beginning ASP.NET 4.5 in CSharp and VB Opsylum

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Us<strong>in</strong>g the Navigation Controls x 263<br />

go<strong>in</strong>g to end up <strong>in</strong> the browser. If your Design View does look much closer to the f<strong>in</strong>al page, open<br />

the Web.config file <strong>and</strong> remove the styleSheetTheme attribute from the element.<br />

4. Click the Menu control’s gray arrow to open its Smart Tasks panel.<br />

5. From the Choose Data Source drop-down list select . In the dialog box that<br />

appears, click the Site Map icon. Figure 7-3 shows the Data Source Configuration Wizard.<br />

FIGURE 7-3<br />

6. Click OK to close the dialog box.<br />

7. When you return to the page, the Menu control now<br />

shows the top-level element, Home (see Figure 7-4).<br />

8. Click the SiteMapDataSource control once <strong>and</strong><br />

then press F4 to open or activate the Properties<br />

Grid. Change the ShowStart<strong>in</strong>gNode property from<br />

True to False. Note that as soon as you do this, the FIGURE 7-4<br />

Menu control <strong>in</strong> the designer is updated <strong>and</strong> shows<br />

all direct child menus under the root element: Home, Reviews, About, <strong>and</strong> Log<strong>in</strong>. Figure 7-5 shows<br />

how your Menu control should look now.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!