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 query string in asp.net?

784


Can you explain autopostback?

738


What is application state?

696


How do you handle server controls?

871


How can you access the properties and controls of master pages from content pages?

755


What is asp.net file?

841


Which adapter should you use, if you want to get the data from an access database?

769


Can more than one person use the same login?

748


What is s2s tracking?

741


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1737


What are validator? Name the validation controls in asp.net?

755


Explain cashing in asp.net.

732


What is the difference between a multi-layer and multi-tier applications?

793


What is content place holder?

730


Is asp.net core faster?

774