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 a Cookie? Where is it used in ASP.NET?

862


Which of the following .NET framework supports Web API?

879


Can you explain architecture of your project ?

894


Explain the different parts that constitute ASP.NET application?

800


Where is http session stored?

704


What is the difference between cache and cookies?

751


What are Master Pages in ASP.NET? or What is a Master Page?

854


What is the usage of DelegatingHandler?

810


Why we go for mvc instead of asp.net? : Asp.Net MVC

743


Explain how can we access static variable?

834


What do you understand from custom control?

833


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

790


Define repository pattern in mvc.net? : asp.net mvc

792


What is ASLM?

906


What is variable and constant in .net programming language?

624