Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How dynamic add css class to navagion bar?
johnson yuan
Sep 6 2014 3:21 AM
727
Reply
if I have this code in a user control file(ascx), I want the page current visited has class "active"
<ul>
<li class="active"><a href="a.html">Home</a></li>
<li><a href="b.html">About Us</a></li>
</ul>
for example: when I visited b.html, the html source should be:
<ul>
<li ><a href="a.html">Home</a></li>
<li class="active"><a href="b.html">About Us</a></li>
</ul>
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
WCF Hosting
Error Handling in asp.net