Continuous Learner #8

MVC

View Model versus Domain Entity Validation with MVC
[1]http://blogs.msdn.com/b/simonince/archive/2010/01/26/view-models-in-asp-net-mvc.aspx

View Models in ASP.NET MVC
[2]http://blogs.msdn.com/b/ukadc/archive/2010/12/16/view-model-versus-domain-entity-validation-with-mvc.aspx

ASP.NET MVC 3: Razor’s @: and <text> syntax
http://weblogs.asp.net/scottgu/archive/2010/12/15/asp-net-mvc-3-razor-s-and-lt-text-gt-syntax.aspx

Validation with the Data Annotation Validators
http://www.asp.net/mvc/tutorials/validation-with-the-data-annotation-validators-cs

EF Feature CTP5: Validation
http://blogs.msdn.com/b/adonet/archive/2010/12/15/ef-feature-ctp5-validation.aspx

Using ASP.NET MVC and jQuery to create confirmation prompts
http://blogs.msdn.com/b/stuartleeks/archive/2010/12/16/using-asp-net-mvc-and-jquery-to-create-confirmation-prompts.aspx

Question:
Given I have an MVC app that use EF4 with validation attributes on the model, and I have a Controller that return a ViewModel ([1]Variant 3).
How would you do validation on the client side?
One example is on [2], do you have an alternative where I don’t have to write so much code?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s