Sorry, the code looks odd for me. First, add Required attribute to all your model fields, which are mandatory. You will not have to check the for collection in this case. ModelState will be automatically updated with state of the fields. Secondly, I don't understand
the using of FormCollection. You have the model - check properties like name and email from there. Cheers
vladnech
Member
175 Points
78 Posts
Re: Model level validation only works once?
Apr 03, 2012 09:29 AM|LINK