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

Which institute provide good Project training on .Net technologies in hyd?

5 Answers  


Is it possible to create web application with both webforms and mvc?

0 Answers  


Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?

0 Answers  


What are the differences between code behind and code inline?

0 Answers  


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

0 Answers  






How many types are there session

5 Answers   TCS,


Master Page

1 Answers   Syntel,


State Management (viewstate, session etc)

2 Answers   Syntel,


What is a server cookie?

0 Answers  


In C#.net application is run on linux michine

4 Answers  


How can we Deploy a website?

2 Answers  


Which of the following hosts Can't be used to create .net Application? a) IIS b) Internet Explorer c) ASP.Net d) Windows Shell Which one is correct?

1 Answers   CTS, TCS,


Categories