Blog posts


  • Get all model validation errors in ASP.NET MVC

    December 08, 2014 | Tags: C#, ASP.NET, MVC, Snippet, Validation

    In ASP.NET MVC you can get a list of all validation errors for your model from the ModelState:

      if (!ModelState.IsValid) {
        var modelErrors = new List<string>();
        foreach (var modelState in ModelState.Values) {
          foreach (var modelError in modelState.Errors) {
            modelErrors.Add(modelError.ErrorMessage);
          }
        }
        // do something with the error list :)
      }

  • ASP.NET Identity for Data Access sample

    October 24, 2014 | Tags: Identity, C#, DataAccess

    This post will show how to switch implementation to the ASP.NET Identity provider for Telerik Data Access usage for the default ASP.NET web project template.

    Read the complete post


  • Disable navbar collapse in Bootstrap 3

    August 28, 2014 | Tags: CSS, Snippet

    If you don't want the navbar to be collaspeable in Bootstrap 3 it's pretty easy to disable it using LESS.

    Open the file variables.less and locate @grid-float-breakpoint, it will look something like this:

    @grid-float-breakpoint: @screen-sm-min;

    To disable collapse just change the value to zero:

    @grid-float-breakpoint: 0;

    And the navbar will not collapse ever again!


  • .NET Image Library has moved to GitHub

    August 27, 2014 | Tags: Image Library, Open source

    In order to make the project more collaborative it has now been moved to GitHub and is now found at https://github.com/fschultz/NetImageLibrary. Migration has been done with all history included.


  • HybridConf 2014 rocked!

    August 24, 2014 | Tags: Inspiration

    I had the great privilege to attend HybridConf 2014 held in Stockholm August 21-22. It was by far one of the best conferences I've been at. Nice friendly atmosphere and a lot of great speakers ranging through a wide variaty of topics.

    Some of the speakers that I really enjoyed - and that I recommend anyone who has the chance to hear - was Tom Soderstrom - IT CTO at NASA Jet Propulsion Laboratory, Scott Hanselman - Principal Program Manager Lead at Microsoft,  Dan Rubin Partner at Webgraph, Hampton Catlin - creator of Sass and Haml and Andrew Nesbitt - developer at Github.

    You can find a couple of Scott Hanselman's talks from other events online. I truely recommend listening to his talk about effectiveness and efficieny. Dan Rubin's talk about roles and communication was also an interesting one.