0

I want to implement navigation menu in ASP.Net MVC4 in Razor view. It will show user how he/she has traversed the pages and will be able to go back to any previous pages in hierarchy.

Eg. If user is browsing products, and if he has reached 'Mobile phones' browsing, I would like navigation menu to display something like below:

Home » All Products » Mobiles & Tablets » Mobile phones

Please note in above navigation, 'Mobile phones' will be only label, whereas other navigation items will be link. User can click on this link and go back to any previous page.

Please suggest approach to implement this.

1 Answer 1

1

What you are looking for is called breadcrumbs if you are looking for already implemented solutions or how it was done please take a look at those projects.

Breadcrumb in MVC

MVC Sitemap Provider tutorial 2 – Breadcrumbs

Creating Dynamic Breadcrumbs in ASP.NET MVC With MvcSiteMap

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks COLD TOLD, that is very helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.