Archive for November, 2010
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
SANKO meeting on ORM tools, 2010-11-24
Finnish .NET Users Group SANKO will be meeting on 24th November in Leppävaara, Espoo, Finland in order to discuss the concept and details of object-relation mapping. In case you live in the Greater Helsinki Area, check this out! The agenda is as follows (all sessions in Finnish): 13:00 – 13:15 Welcome & What’s this SANKO? […]
November 19, 2010
· Jouni Heikniemi · No Comments
Tags: SANKO · Posted in: .NET
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
Keeping ASP.NET MVC action method argument names separate from the query
ASP.NET MVC does a wonderful job of automatically routing and binding your HTTP request data to the action method. But what if you don’t want to use the same argument names in your routes (for example, query strings) and your methods? There are a few typical scenarios where you might encounter this. First, if you’re […]
November 15, 2010
· Jouni Heikniemi · 11 Comments
Tags: ASP.NET MVC · Posted in: .NET, Web
It takes ten megs to represent three leds
15 years ago we were really struggling with memory problems. Machines typically had 4 megabytes of RAM. And keyboards still had lights for Num lock, Scroll lock and Caps lock. Wait, how are these connected? See, my modern Lenovo W510 has dispensed with the leds on the keyboard (well, we still have one for Caps […]
November 10, 2010
· Jouni Heikniemi · 4 Comments
Posted in: General
New guidance: No more Silverlight for the web?
Microsoft sparked quite a controversy when Bob Muglia stated in an ZDnet interview that their “Strategy had changed” regarding Silverlight’s position, and HTML5 was the future way to go. In this post, I look at the whole debacle’s effect on future technology recommendations. While this has now been explained by Bob Muglia, Steve Ballmer and […]
November 5, 2010
· Jouni Heikniemi · 3 Comments
Tags: HTML5, Silverlight · Posted in: .NET, Web
Ray Ozzie’s Dawn of a New Day condensed
Microsoft’s soon to be ex-Chief Software Architect Ray Ozzie is a great thinker. But he’s also very, very verbose, and his latest 3500-word memo called Dawn of a New Day is quite a bit to digest. Here’s my summary of it (plus a few comments). First, Ozzie iterates things that have changed since his Internet […]
November 1, 2010
· Jouni Heikniemi · 2 Comments
Tags: future, strategy · Posted in: General