if I have this code in a user control file(ascx), I want the page current visited has class "active"
for example: when I visited b.html, the html source should be:
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nitesh KejriwalPosted Sep 7, 2014, 11:30 PM
johnson yuanPosted Sep 7, 2014, 4:39 PM
you can look this demo at http://aspnet451.planetwrox.com/PhotoAlbums/
how can I do this in my project?
johnson yuanPosted Sep 7, 2014, 4:36 PM
I think the key is how to determine the case to check whether to add css class.
How can I know which page I'm loading now?
It's not like news_list.aspx?id=14 that I can add css class by querystring,
I have to page's like news_list.aspx, index.aspx...
Nitesh KejriwalPosted Sep 6, 2014, 4:17 AM