What for use web.sitemap in asp.net?

Answer Posted / atul

Before u can start using navigation control (such as
menu,treview and sitemappath)in asp.net u must create
xmlsitemap called web.sitemap for asp driven class.
for example:-(this is for menu)
<?xml version="1.0" encoding="utf-8"?>
<siteMap
xmlns="http://schemas.microsoft.com/aspnet/SiteMap-File-1.0">
<siteMapNode url="~/default.aspx" title="Home" description="">
<siteMapNode url="~/Trailreport.aspx" title="trails"
description=""/>
<siteMapNode url="~/Diag.aspx" title="Diagnostics"
description=""/>
<siteMapNode url="~/contact.aspx" title="contact us"
description="" >
<siteMapNode url="~/feedback.aspx" title="Feedback"
description=""/>
</SiteMapNode>
</SiteMapNode>
</SiteMap>

This file is web.sitemap file and binding with the menu control.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of url encoding?

484


how to debug web services on consumer side?

566


What is the use of execute non query in asp.net?

475


What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?

664


What is a web api?

541






What is the purpose of master page?

511


What is a 1x1 pixel?

522


Where is session data stored in asp net?

506


What is runat?

605


Why Unload event of MasterPage Calls first in ASP.net ?

579


What are type/key pairs in client script registration?

556


What is server components?

527


What are the types of session in asp.net?

518


What is the used of "ispostback" property?

557


What’s difference between “optimistic” and “pessimistic” locking?

571