Unit Testing ASP.NET MVC with MvcContrib
Sep 14,
2011
One of the big drivers for people moving over to ASP.NET MVC is its support for Test Driven Development/Unit Testing. The ability to automate testing of models and controllers brings a measurable level of confidence to development. In ASP.NET MVC, that means we can be sure that we are getting the expected views, data and […]
Simplifying Dynamic Ajax Forms with jQuery Delegates
Jul 22,
2011
Recently I was working on an ASP.NET MVC application that made extensive use of Ajax. It’s a version of Chutes/Snakes and Ladders using HTML5 and JavaScript. I used jQuery for the Ajax, of course (what do you expect? I wrote the Learning Tree course jQuery: A Comprehensive Hands-On Introduction). As always, jQuery was a pleasure […]
Preventing Duplicate Logins in ASP.NET
Jul 11,
2011
ASP.NET provides a convenient and highly extensible authentication and authorization system that is shared by both ASP.NET MVC and ASP.NET Web Forms. I have cheerfully used it for years, without ever worrying about the fact that there is nothing in the system to prevent the same user from logging in multiple times. The other day, […]
Model-First Development with Entity Framework 4
Jul 6,
2011
ADO.NET Entity Framework ADO.NET Entity Framework (EF) is an object-relational mapping tool included with .NET. It is used to automate database access. To use it, you need a data model which defines classes (or entities). Entities contain properties that are mapped to fields inside tables in a relational database. If you already have a database […]
Conditional Compilation
Jul 5,
2011
Have you ever been in a situation where your application needs to behave one way in development and another in production? Perhaps you only want to send an email if the application is on the live server, or you’re developing an ASP.NET MVC application and need to add the [RequireHttps] attribute – but only if […]