| Author: UltimateRengan 04 Aug 2008 | Member Level: Diamond | Rating: 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 2008 | Member Level: Diamond | Rating: 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
|