How to disable current page links in ASP.NET MVC?

Posted by rem on Stack Overflow See other posts from Stack Overflow or by rem
Published on 2010-03-13T19:20:56Z Indexed on 2010/03/13 19:25 UTC
Read the original article Hit count: 112

Filed under:
|

I'm investigating ASP.NET MVC now and noticed that in ASP.NET MVC application, which is created by Visual Studio by default, links "Home" and "About" are staying active when the user is on "Home" and "About" page correspondingly, and after clicking on the current page link page is reloading itself.

What is the correct approach to disable link which points to the page, a user is already on?

How to do it without violating ASP.NET MVC approach?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about gui