ContosoUniversity
ContosoUniversity copied to clipboard
Refill model after being submitted with errors.
Hello,
I have been looking at Contoso University and I have a question:
How do you deal with refilling the model helper properties after being submitted with errors? I am talking about filling SelectLists or the data which the SelectLists depends on?
Thank You, Miguel
Contoso University uses a validation technique described in Simplify Client-side Validation…by Adding a Serve.
Because form submits are always handled by AJAX, the form's current state is never wiped. So select lists and other view model concerns never need to be recreated.