This is probably easy, although I cant seem to find the solution. In my view I have links in a partial view which acts as a menu. I need to apply an active class to the anchors if they are the page currently being viewed.
What I therefore need is a quick and simple method of checking the href of the link against the url of the page?
Any takers? :)