Articles : Page 1 of 1

  • The evolution of asynchronous controllers in ASP.NET MVC

    The evolution of asynchronous controllers in ASP.NET MVC

    Jan 12
    09

    Asynchronous operations in ASP.NET MVC have always been left a bit behind. They appeared in ASP.NET MVC 2, remained untouched in v3, but now in MVC 4 (especially  in combination with C# 5 and async/await) they reached the same easiness of use of the standard synchronous controller. Now (or better, in a few months with the release of ASP.NET MVC 4, .NET 4.5 and C# 5) you can write public async Task<ViewResult> Stuff() { return View(await DoStuff("Some stuff")); } In this post I’m going to...


  • NuGet Package of the Week #9 - ASP.NET MiniProfiler from StackExchange rocks your world

    NuGet Package of the Week #9 - ASP.NET MiniProfiler from StackExchange rocks your world

    Jul 11
    22

    I LOVE great debugging tools. Anything that makes it easier for me to make a site correct and fast is glorious. I've talked about Glimpse, an excellent firebug-like debugger for ASP.NET MVC, and I've talked about ELMAH, and amazing logger and error handler. Now the triad is complete with MiniProfiler, my Package of the Week #9. Yes, #9. I'm counting System.Web.Providers as #8, so phooey. ;) Hey, have you implemented the NuGet Action Plan? Get on it, it'll take only 5 minutes: NuGet Action...


  • MVC Filters: Easily Add Performance Counters to Your MVC Application

    MVC Filters: Easily Add Performance Counters to Your MVC Application

    Jun 11
    30

    Ben Grover adds performance counters to a Model-View-Controller (MVC) app and explains how to use MVC filters to clean up and replace repeated, confusing code that was spread throughout numerous action methods in an application. Ben Grover MSDN Magazine July 2011...


  • Just released: MvcSiteMapProvider 3.1.0 RC

    Just released: MvcSiteMapProvider 3.1.0 RC

    May 11
    27

    It looks like I’m really cr… ehm… releasing way too much over the past few days, but yes, here’s another one: I just posted MvcSiteMapProvider 3.1.0 RC both on CodePlex and NuGet. The easiest way to get the current bits is this one: As usual, here are the release notes: Created one NuGet package containing both .NET 3.5 and .NET 4.0 assemblies Significantly improved memory usage and performance Medium Trust optimizations DefaultControllerTypeResolver speed improvement Resolve author...


  • ASP.NET GZip Encoding Caveats

    ASP.NET GZip Encoding Caveats

    May 11
    02

    GZip encoding in ASP.NET is pretty easy to accomplish using the built-in GZipStream and DeflateStream classes and applying them to the Response.Filter property. While applying GZip and Deflate behavior is pretty easy there are a few caveats that you have watch out for as I found out today for myself with an application that was throwing up some garbage data. But before looking at caveats let’s review GZip implementation for ASP.NET. ASP.NET GZip/Deflate Basics Response filters basically are ...


  • Model Binding Decimal Values

    Model Binding Decimal Values

    Mar 11
    19

    I’m in the beautiful country of Brazil right now (I’ll hopefully blog more about that later) proctoring for the hands-on labs that’s part of the Web Camps agenda. However, the folks here are keeping me on my toes asking me to give impromptu and deeply advanced demos. It almost feels like a form of performance art as I create brand new demos on the fly. During this time, several people reported issues binding to a decimal value that prompted me to write a new demo and this blog post. Let...



  • 1