MVC Razor Semicolon showing up

If you get a pesky semicolon in your page when using MVC 3 with Razor, you probably did something like this:




See the semicolon? It’s fine to put it there, but of course Razor doesn’t see it as .net code, just more inline html.

This one is obvious once you notice it, but it took me a bit to figure out where it was coming from the first time i encountered it.


Leave a Reply

Your email address will not be published. Required fields are marked *