Ryan Rivest

  Home :: Contact :: Syndication  :: Login
  8 Posts :: 0 Stories :: 0 Comments :: 0 Trackbacks

Archives

Post Categories

ASP.NET MVC

ASP.NET MVC

There are quite a few examples of using the attributes from System.ComponentModel.DataAnnotations out there in your ASP.NET MVC applications.  If you haven’t been keeping up with what’s new in ASP.NET MVC 2, one of the biggest improvements is in the area of validation – which is now automatic if you decorate your models with the attributes.  I recommend you check out ScottGu’s latest epic post on the topic to get up to speed. Continuing with the Gu’s example, here is our Person class and the applied validation attributes: public class Person { ...


When I first discovered ASP.NET MVC, I was about to begin development on a brand new project at work.  Since I come from a more “pure” background of web development (not Web Forms), I immediately got excited when I heard about this new framework.  The pieces began to click in my mind.. *finally* an ASP.NET that doesn’t rely on the drag and drop experience and hide the true nature of the web, I thought. Day after day I would read articles and watch conference videos about this new and exciting way to build web apps with ASP.NET.  Around the...