(Server controls vs. Inline code) = (What vs. How)
When each developer first learns about ASP.NET MVC, their immediate reaction to MVC view pages is to be shocked and appalled by the mixture of HTML markup and C# code (“inline code”). Read More
Improve scalability in ASP.NET MVC using Asynchronous requests
ASP.NET applications run with a fixed-size thread pool. By default, they have 200 (or 250? I forget…) threads available to handle requests. You can make the thread pool bigger if you want, but it’s not usually helpful: more contention and overhead from thread switching will eventually actually reduce the server’s throughput. But what if most of your threads are actually sitting around doing nothing, because they’re actually waiting for some external I/O operation to complete, such as a database query or a call to an external web service? Surely things could be more efficient… Read More
Unexpected feature in Vista SP1
Wow, they’re really taking this operating system to the next level. Read More
ASP.NET MVC: Making strongly-typed ViewPages more easily
When I first started using ASP.NET MVC, I had a problem with ViewData. It seemed like a bit of a pain, because you have two options: Read More
Client-side MVC with jMVC and ASP.NET MVC
As you might expect, it’s pretty neat and simple to use jMVC with the new ASP.NET MVC framework. Since MVC coders already understand the core concept, and since I’m about to give you a handy helper assembly, it hardly takes any effort at all. Read More
ASP.NET MVC: Prevent XSS with automatic HTML encoding
There’s an interesting (and sometimes heated) debate on the ASP.NET MVC forums about HTML encoding. Read More