Which three actions should you perform?

You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. The following XML defines the site map for your site.

<siteMapNode url=”~\default.aspx” title=”Home” description=”Site Home Page”>
<siteMapNode url=”Sales.aspx” title=”Sales” description=”Sales Home”>
<siteMapNode url=”SalesWest.aspx” title=”West Region” description=”Sales for the West Region” />
<siteMapNode url=”SalesEast.aspx” title=”East Region” description=”Sales for the East Region” />
</siteMapNode>
<siteMapNode url=”Marketing.aspx” title=”Marketing” description=”Marketing Home”>
<siteMapNode url=”MarketNational.aspx” title=”National Campaign” description=”National marketing campaign” />
<siteMapNode url=”MarketMidwest.aspx” title=”Midwest Campaign” description=”Midwest region marketing campaign” />
<siteMapNode url=”MarketSouth.aspx” title=”South Campaign” description=”South region marketing campaign” />
</siteMapNode>
</siteMapNode>

You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

You create a Web Form that contains a TreeView control. The TreeView control allows users to navigate within the Marketing section of your Web site. The following XML defines the site map for your site.

<siteMapNode url=”~\default.aspx” title=”Home” description=”Site Home Page”>
<siteMapNode url=”Sales.aspx” title=”Sales” description=”Sales Home”>
<siteMapNode url=”SalesWest.aspx” title=”West Region” description=”Sales for the West Region” />
<siteMapNode url=”SalesEast.aspx” title=”East Region” description=”Sales for the East Region” />
</siteMapNode>
<siteMapNode url=”Marketing.aspx” title=”Marketing” description=”Marketing Home”>
<siteMapNode url=”MarketNational.aspx” title=”National Campaign” description=”National marketing campaign” />
<siteMapNode url=”MarketMidwest.aspx” title=”Midwest Campaign” description=”Midwest region marketing campaign” />
<siteMapNode url=”MarketSouth.aspx” title=”South Campaign” description=”South region marketing campaign” />
</siteMapNode>
</siteMapNode>

You need to bind the TreeView control to the site map data so that users can navigate only within the Marketing section.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)

A.
Add a SiteMapDataSource control to the Web Form and bind the TreeView control to it.

B.
Add a SiteMapPath control to the Web Form and bind the TreeView control to it.

C.
Embed the site map XML within the SiteMap node of a Web.sitemap file.

D.
Embed the site map XML within the AppSettings node of a Web.config file.

E.
Set the StartingNodeUrl property of the SiteMapDataSource control to ~/Marketing.aspx.

F.
Set the SkipLinkText property of the SiteMapPath control to Sales.



Leave a Reply 0

Your email address will not be published. Required fields are marked *