HTML Encoding Blocks - Invalid expression term ':'
Posted
by Jamie Dixon
on Stack Overflow
See other posts from Stack Overflow
or by Jamie Dixon
Published on 2010-05-07T16:21:06Z
Indexed on
2010/05/07
16:28 UTC
Read the original article
Hit count: 457
Hey everyone,
I'm developing a new ASP.NET MVC 2.0 application and wanting to use the new ASP.NET 4 encoding blocks.
My View code contains <%: Model.ActivityName %>
however Visual Studio is reporting:
Unexpected toke
at the position of the :
(colon). When I run the application I get the following compilation error:
Compiler Error Message: CS1525: Invalid expression term ':'
What am i missing?
Cheers for any help/advice.
© Stack Overflow or respective owner