html - Add “selected” Class to the Menu Item - MVC -


itemprop = "text">

I'm missing this tutorial () How to add the "selected" class to the menu in MVC, in other words it The tutorial shows how to create a Navigator menu in MVC, when you click on the Nave button it remains selected.

But when I am writing this code

 using  to & lt; Span class = "skimlinks-unlinked" & gt; System Web & lt; / span & gt; & Lt; Span class = "skimlinks-unlinked" & gt; System.web.mvc & lt; / Span & gt; by using; Namespace & lt; span class = "skimlinks-unlinked" & gt; AdminRole.HtmlHelpers & lt; / Span & gt; {...}   

My Visual Studio 2012 shows an error in this area

    

And it says the identifier is expected?

What identifier?

OK, I solve it ...

This code: & lt; Using span class = "skimlinks-unlinked" & gt; System Web & lt; / Span & gt; & Lt; span class = "skimlinks-unlinked" & gt; System.web.mvc & lt; / Span & gt; by using; Namespace & lt; span class = "skimlinks-unlinked" & gt; AdminRole.HtmlHelpers & lt; / Span & gt;

Rewrite to:

  System. Using the web; Using System.Web.Mvc; Namespace AdminRole.HtmlHelpers   

now it works :)

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -