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


Top 5 Contributors of the Month
david stephan

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
Hi
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

Thanks

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

Hello

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="" >
</sitemap>
</sitemapnode>
</sitemap>


Thanks
Maverick

Thanks,
Maverick
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" ?>
<Root>
<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>
<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>
</SubMenu>
</Menu>
<Menu text="My Account" url="#" >
<SubMenu text="View Profile" url="BuyerRegistration.aspx></SubMenu>
<SubMenu text="Update Personal Details" url="BuyerRegistration.aspx></SubMenu>
</Menu>
<Menu text="My Account" url="#">
<SubMenu text="View Profile" url="SellerRegistration.aspx></SubMenu>
<SubMenu text="Update Personal Details" url="SellerRegistration.aspx></SubMenu>
</Menu>
<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>
<SubMenu text="Manage Products" url="#" >
<SubMenu text="Add Product" url="~/AddProducts.aspx" ></SubMenu>
<SubMenu text="View Products" url="~/ViewProducts.aspx" ></SubMenu>
</SubMenu>
<SubMenu text="Manage Categories" url="#" >
<SubMenu text="Add Category" url="~/AddCategory.aspx" ></SubMenu>
<SubMenu text="View Categories" url="~/ViewCategory.aspx" ></SubMenu>
</SubMenu>
</Menu>
</Root>




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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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