3 step validation with dataannotations
Posted
by molgan
on Stack Overflow
See other posts from Stack Overflow
or by molgan
Published on 2010-03-16T08:05:19Z
Indexed on
2010/03/16
8:06 UTC
Read the original article
Hit count: 204
asp.net-mvc
Hello
I'm trying to build a "wizard-like" app that has 3 pages. First one you fill in some requests, then you select time and date, and last step is to fill in your name and address etc.
How should the validation be taken care of, since I also need to validate all "3 steps" when pressing submit on the last step.
Do I need to have 4 viewmodels there? like step1model, step2model...... and then validateallmodel?
And must I use some session-like in between since it "redirect's" to next step if successful?
/M
© Stack Overflow or respective owner