tags:

views:

1158

answers:

2

I'm currently working on a blog application in asp.net mvc.

I can't quite figure out how to handle my input validation! As far as I understand the view itself cannot know about input validation!? So how am I going to do this?

A: 

I believe this feature has been added in CTP5. I have not used it yet though.

leppie
+6  A: 

Scott Gu have written something about MVC Preview 5, and form posting:

http://weblogs.asp.net/scottgu/archive/2008/09/02/asp-net-mvc-preview-5-and-form-posting-scenarios.aspx

Its a big post, but it walks you though a Form posting validation thingy. Remark that this is not the only way to do it, but it is a way.

Jesper Blad Jensen aka. Deldy
Thanks mate, that was just what i needed!
Søren Pedersen