Razor + Visual Studio bug: don’t paste whitespace in code
Just a quick note of a bug my wife discovered when working with some Razor code. If you have ASP.NET MVC 3 Release Candidate installed, you can trigger this. Take a spot where your view file has a C# expression (such as @View.Title), and paste some code after that expression. An example of the code […]
November 30, 2010
·
Jouni Heikniemi ·
No Comments
Tags: Razor · Posted in: .NET, Web
Outputting partial elements with ASP.NET Razor
The new ASP.NET MVC 3 also ships with a totally new option for a view engine, Razor. I’ve now been using Razor in a project for couple of months, and yeah, it’s good – but not entirely without problems. Here I’ll cover one of them. Imagine a scenario where you’re outputting something that may or […]
November 17, 2010
·
Jouni Heikniemi ·
No Comments
Tags: ASP.NET MVC, Razor · Posted in: .NET, Web