Articles : Page 1 of 2

  • 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...


  • RFC: Web Platform Installer (WebPI) with an offline feed mode for bandwidth savings

    RFC: Web Platform Installer (WebPI) with an offline feed mode for bandwidth savings

    Sep 11
    24

    My wife is in the Kingdom of Swaziland this evening. If she was a developer over there and wanted to use Web Platform Installer to get Visual Studio or some large download she would have to patiently bring the bits down over 3G. If she was very well off, she might have ASDL with a maximum speed of 512kbps down, most likely with a cap. I've talked about limited connectivity in African countries and other nations (*cough* New Zealand *cough*) before on this blog and it's no fun. I've told the w...


  • Adding MVC dependencies to a project for deployment

    Adding MVC dependencies to a project for deployment

    Jun 11
    13

    Deployment of new web applications has been a bit annoying since the birth of ASP.NET MVC. Production servers with .NET 4 or 3.5 installed will still be missing key assemblies such as System.Web.Mvc.dll. This will cause errors such as "Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies" and "Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf38...


  • Modifying the default code generation/scaffolding templates in ASP.NET MVC

    Modifying the default code generation/scaffolding templates in ASP.NET MVC

    Mar 11
    28

    One of the things people like the most about my ASP.NE MVC 2 Ninja Black Belt Tips video, besides the Bill Cosby sweater, is the tip where I show how to modify the default CodeTemplates that are used in Code Generation in ASP.NET MVC (either version). Eilon mentioned it on an internal mailing list this week so I thought it'd be worth surfacing again in case you haven't heard of this, Dear Reader. Soon, we'll see even more powerful, flexible, and fun ways to customize your own Scaffolding ...


  • Modifying the default code generation/scaffolding templates in ASP.NET MVC

    Modifying the default code generation/scaffolding templates in ASP.NET MVC

    Mar 11
    28

    One of the things people like the most about my ASP.NE MVC 2 Ninja Black Belt Tips video, besides the Bill Cosby sweater, is the tip where I show how to modify the default CodeTemplates that are used in Code Generation in ASP.NET MVC (either version). Eilon mentioned it on an internal mailing list this week so I thought it'd be worth surfacing again in case you haven't heard of this, Dear Reader. Soon, we'll see even more powerful, flexible, and fun ways to customize your own Scaffolding ...


  • Beginning ASP.NET MVC 1 is now available as a DRM-free PDF ebook

    Beginning ASP.NET MVC 1 is now available as a DRM-free PDF ebook

    Feb 11
    25

    Since the current version of ASP.NET MVC is version 3 you might wonder why I am still promoting my Beginning ASP.NET MVC 1.0 book. The reason is that since a few week it is also available as DRM-free eBook at a discounted price directly from the Wrox site (together with many other books from Wrox). For the moment you have to enter the code FROST to get a 35% reduction on the standard price, but soon the prices on the site will be updated to reflect the reduced price. After you buy the MVC ...

    • MVC2
    • Version

  • MvcSiteMapProvider 3.0.0 released

    MvcSiteMapProvider 3.0.0 released

    Feb 11
    04

    Just a quick note to tell that MvcSiteMapProvider 3.0.0 has been released and is available on CodePlex and NuGet. This version is targeted at ASP.NET MVC 3. If you are still using ASP.NET MVC 2, no worries: version 2.3.1 contains the exact same functionality but is targeted at ASP.NET MVC 2. The changelog: Additional UpdatePriority options for generating XML sitemaps Allow to specify target on SiteMapTitleAttribute One action with multiple routes and breadcrumbs Medium Trust optimizatio...


  • MVC 3 AdditionalMetadata Attribute with ViewBag to Render Dynamic UI

    MVC 3 AdditionalMetadata Attribute with ViewBag to Render Dynamic UI

    Jan 11
    31

    A few months ago I blogged about using Model metadata to render a dynamic UI in MVC 2. The scenario in the post was that we might have a view model where the questions are conditionally displayed and therefore a dynamic UI is needed. To recap the previous post, the solution was to use a custom attribute called [QuestionId] in conjunction with an “ApplicableQuestions” collection to identify whether each question should be displayed. This allowed me to have a view model that looked like this: ...


  • How was my 2010?

    How was my 2010?

    Jan 11
    13

    It’s the beginning of the year again, and exactly as last year, on the 13th of January I’m reviewing the year that passed against the my 2010 resolutions, and see how it went. Who did 2010 go? Before starting the list I want to add a resolutions that I didn’t disclose with my 2010 resolutions: I wanted to move out of Italy in 2010. And since now I’m living in Belgium I think the biggest goal form 2010 was accomplished. But all the other resolutions where a bit shadowed by the big effort need...


  • 3 things that changed ASP.NET development in 2010

    3 things that changed ASP.NET development in 2010

    Dec 10
    23

    As 2010 draws to a close I thought about how I was writing code last year. I realised how much development has changed in just one year. I want to look at how my work has evolved during 2010. Entity Framework 4I really like using Entity Framework. I wasn't quite sure about it in its first version, however, since the release of Entity Framework 4 in April I fully adopted it. It solves so many problems that I feel exist in modern web development. I like stored procedures, I know a lot about usin...