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

Differentiate between a hyperlink control and a linkbutton control.

0 Answers  


Describe paging in asp.net?

0 Answers  


Describe the diffeerence between inline and code behind?

0 Answers  


What is difference between datalist and gridview?

0 Answers  


Differentiate between structure and class.

0 Answers  






what is SAP fullform

161 Answers   Infosys, Lupin, Amazon, TCS, Microsoft, IBM, Videocon, RPG, SAP Labs, A3Logics, DFD, Federal Mogul, Hol Info, Kesri Metal, Jai Ganesh, SRS Group,


What is strong-typing versus weak-typing? Which is preferred? Why?

2 Answers  


Describe the master page.

0 Answers  


What is mvc in angular?

0 Answers  


What is .net remoting?

0 Answers  


Question asked by one of interviewer in panal is given below: We have 2 user control on same page ,1st user control contains textbox and a button while 2nd user control have label. when ever we click on button click of 1st custom control button the value of the textBox will get updated into Label of 2nd custom control. How to do this.Your help will be appreciated.

1 Answers  


Difference between ASP & ASP.NET Session State

1 Answers   Cognizant, Wipro,






Categories