C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




sitemappath


Posted Date: 04 Aug 2008      Total Responses: 2

Posted By: Manikandan       Member Level: Bronze     Points: 1



how to use the sitemappath control and how to fill this control through xmlfile in asp.net 2005




Responses

Author: UltimateRengan    04 Aug 2008Member Level: DiamondRating:     Points: 6

hi,
1)Drag and drop Menu control to Form
2)set Datasource ID=SET XML FILE
3)then add the SiteMap throug Solution Explorer
4)Right click the Solution Explorer
5)choose the NewItem
6)choose Sitemap

sitemap look like:-

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="" description="">
<siteMapNode url="" title="" description="" />
<siteMapNode url="" title="" description="" />
</siteMapNode>
</siteMap>


XML File For Example:-

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="xxx" title="xxxxxxx" description="asdf">
<siteMapNode url="Default2.aspx" title="NextPage" description="asd" />
<siteMapNode url="" title="" description="" />
</siteMapNode>
</siteMap>




UltimateRengan
nathan.rengan@gmail.com
Trichy-Rider Group



Author: UltimateRengan    04 Aug 2008Member Level: DiamondRating:     Points: 5


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href="Web.sitemap"></a>
<asp:Menu ID="Menu1" runat="server" DataSourceID="SiteMapDataSource1">
</asp:Menu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />

</div>
</form>
</body>
</html>


UltimateRengan
nathan.rengan@gmail.com
Trichy-Rider Group



Post Reply
You must Sign In to post a response.
Next : Unable to cast object of type cart_provider [] to type 'system.Iconvertible'
Previous : Interview question
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use