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

What is a web based system?

0 Answers  


Is asp.net a programming language or framework?

0 Answers  


Using Statement usage in C#

2 Answers  


What is viewstate? In which event of the page life cycle, is the viewstate available?

0 Answers  


How you will improve web application performance?

0 Answers   Wipro,






Is there any alternative to avoid name collisions other then Namespaces?

0 Answers  


How do I send an email message from my ASP.NET page?

0 Answers  


What is the purpose of url encoding?

0 Answers  


How to display Alert in ASP.NET

0 Answers   HCL,


.net allows which inheritence

6 Answers   AG Technologies, Samcomm,


Which library is used by the testers and developers to develop automated tests and create testing tools?

0 Answers  


What r new things introduced in ASP.NET 2.0 in comparision to ASP.NET 1.1

1 Answers  


Categories