.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Display the current page name and menu

Posted By: prasad     Posted Date: March 07, 2011    Points:5   Category :ASP.Net
Im binding xml file with menu control using XmlDatasource in master page based on the roles it will display the manus after login the page.it working fine but my problem is i want to display the currentpage menu with page name like

Home > login links can one help me how to do this


Author: Maverick             
Posted Date: March 07, 2011     Points: 20   


Use breadcrums using the sitemap file.

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

<siteMapNode url="~/Login.aspx" title="Formats" description="" >


Author: prasad             
Posted Date: March 07, 2011     Points: 20   

Thanks for ur Replay

I was already use xmlfile for binded the menu control
How to do i use Sitemap please tell me

<?xml version="1.0" encoding="utf-8" ?>
<Menu text="Home" url="~/Home.aspx"></Menu>
<Menu text="Dashboard" url="~/Dashboard.aspx" ></Menu>
<Menu text="My Trading" url="#" >
<SubMenu text="Order Book" url="~/OrderBook.aspx"></SubMenu>
<SubMenu text="Trade Book" url="~/TradeBook.aspx"></SubMenu>
<Menu text="My Trading" url="#" >
<SubMenu text="Order Book" url="MenuFromXml.aspx"></SubMenu>
<SubMenu text="Trade Book" url="MenuFromXml.aspx"></SubMenu>
<SubMenu text="My Auctions" url="#">
<SubMenu text="View Auctions" url="~/DisplayAuctions.aspx"></SubMenu>
<Menu text="My Account" url="#" >
<SubMenu text="View Profile" url="BuyerRegistration.aspx></SubMenu>
<SubMenu text="Update Personal Details" url="BuyerRegistration.aspx></SubMenu>
<Menu text="My Account" url="#">
<SubMenu text="View Profile" url="SellerRegistration.aspx></SubMenu>
<SubMenu text="Update Personal Details" url="SellerRegistration.aspx></SubMenu>
<Menu text="Master Data" url="#">
<SubMenu text="Manage Users" url="#" >
<SubMenu text="Create User" url="~/CreateUser.aspx"></SubMenu>
<SubMenu text="View User List" url=""></SubMenu>
<SubMenu text="Manage Products" url="#" >
<SubMenu text="Add Product" url="~/AddProducts.aspx" ></SubMenu>
<SubMenu text="View Products" url="~/ViewProducts.aspx" ></SubMenu>
<SubMenu text="Manage Categories" url="#" >
<SubMenu text="Add Category" url="~/AddCategory.aspx" ></SubMenu>
<SubMenu text="View Categories" url="~/ViewCategory.aspx" ></SubMenu>

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend