Setting Up the Menu Control
You will need to add a Site Map file to your project, which serves as the data file
for the SiteMapDataSource control you added in the previous lesson. This file
contains the hierarchy of the links shown in the Menu control.
1. In the
Solution Explorer right-click the project and select Add New Item. Select the Site Map template and click on the Add
button.
After it has been added, the Site Map file is loaded into the Code Editor window.
2. In web.SiteMap replace the existing the siteMapNode
element and its contents with the following XML fragment.
<siteMapNode url="Default.aspx" title="Home" description="" >
<siteMapNode url="ContentPage.aspx" title="My Content Page" description="" />
<siteMapNode url="Authors.aspx" title="Authors" description="" />
</siteMapNode>
You have already added the Authors.aspx page to your project, but it does not yet inherit from the
Master Page you created. ContentPage.aspx is a page you will create in the next lesson. It will inherit
from the Master Page.
Powered By ASP.NET v2.0
|