TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Priyanka Singh
685
1.4k
682.9k
How to call active class dynamically in asp.net core
May 1 2021 8:39 AM
<li class="nav-item">
<a class="nav-link mmenu active" aria-current="page" href="@Url.Index("Home")">Home</a>
</li>
<li class="nav-item">
<a class="nav-link mmenu " aria-current="page" href="@Url.Index("Home1")">Home1</a>
</li>
<li class="nav-item">
<a class="nav-link mmenu " aria-current="page" href="@Url.Index("Home2")">Home2</a>
</li>
I need to call active class dynamically whenever I visit the navigation tab. That particular class in li should be active.
Reply
Answers (
2
)
Convert html tag to href.
I did everything as written in the article but it shows this error.