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

Why and where this web.config file is used?

595


Describe session handling in a webfarm, how does it work and what are the limits?

585


In early binding will the method invoked on com component will verify it?s existance in the system or not ?

2142


What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?

552


Whats the difference between abstract factory pattern and factory pattern?

601






Is it possible for me to change my aspx file extension to some other name?

586


Explain asp.net page life cycle?

617


What are the event handlers that we can have in global.asax file?

535


Explain the difference between server.transfer and response.redirect? Why would I choose one over the other?

546


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

633


What is AutoPostback?

601


A Web Service Can Only Be Written In .net. Is it True??

642


What is the difference between application state and caching?

546


What is the difference between page.registerclientscriptblock and page.registerstartupscript?

485


when a request is made in Life cycle of ASP.NET page .

533