Asp.Net Mvc highlighting current page link technique?

前端 未结 6 1169
误落风尘
误落风尘 2020-12-04 10:35

I need to highlight active link in the menu. My menu is in the master page by the way. I\'m looking for the best way to implement this? Any ideas?

6条回答
  •  盖世英雄少女心
    2020-12-04 10:58

    The simplest solution:

    1) Connect jQuery to @RenderBody ()

    2) On Layout

    ...                        
    
    

    ...

    3) Write something similar on your page (View)

    
    

提交回复
热议问题