What for use web.sitemap in asp.net?



What for use web.sitemap in asp.net?..

Answer / 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

More ASP.NET Interview Questions

Is session server side or client side?

0 Answers  


what is diffrence between debug class and trace class in asp.net ?

2 Answers  


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

0 Answers  


if i have 1000 records and i want to access 20 ata time from SQL server, what will be the query?

9 Answers   Mind Tree,


In try catch blocks one is normal catch block and another is sqlcatchexception block

3 Answers   Microsoft,






Describe the difference between inline and code behind - which is best in?

0 Answers  


Is asp.net mvc front end or backend? : Asp.Net MVC

0 Answers  


What is the use of web.config? Difference between machine.config and Web.config?

5 Answers  


how we declare interface

2 Answers  


How does the iis work?

0 Answers  


what are the components available in global.asax ?

1 Answers  


Difference between abstract class and interface

2 Answers   Fidelity,


Categories