What am I doing wrong? How come <%= this %> isn't being interpreted as C#?
Here's the code : 
And here is what it renders (notice the Firebug display): 
What do you think is going on? MVC newb here. :(
And the static Site class: 
(If you cannot see the screenshots on the page, view source and use the URLs from the <img> tags.)
<%: %> starts with .NET v4
For pre-v4 it's equivalent is <%= Html.Encode(...) %>
The problem was that I was using <%= %> (or even <%: %>) within a tag that had runat="sever".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With