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

Where is ViewState information stored?

18 Answers   DSRC, HCL,


How Clustered Index and Non clustered index stored on SQL server?

2 Answers   TCS,


after which page life cycle event all properties of control will be "fully loaded "

10 Answers   FactorH,


Have you used microsoft dataaccess blocks and Exception blocks?

1 Answers   Microsoft,


Differnce between Control an View State

1 Answers   Proteans,


How many rounds are there for a software programmer to clear interview in any IT industries(MNC).

3 Answers   HCL,


What are cookies in your browser?

0 Answers  


How will u decide when to use caching and when to use viewstate?

5 Answers  


Is post back in asp.net?

0 Answers  


Explain some of the major built-in objects in asp.net

0 Answers  


What symbol specifies the beginning of a query string?

0 Answers  


Explain the path instructions in xaml?

0 Answers  


Categories