Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC input validation

Tags:

c#

asp.net-mvc

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?

like image 435
Søren Pedersen Avatar asked Sep 29 '08 13:09

Søren Pedersen


1 Answers

Scott Guthrie has written something about ASP.NET MVC Preview 5, and form posting:

ASP.NET MVC Preview 5 and Form Posting Scenarios

It's a big post, but it walks you through a Form posting validation thingy. Remark that this is not the only way to do it, but it is a way.

like image 53
Jesper Blad Jensen Avatar answered Oct 19 '22 23:10

Jesper Blad Jensen