ContosoUniversity icon indicating copy to clipboard operation
ContosoUniversity copied to clipboard

Refill model after being submitted with errors.

Open mdmoura opened this issue 9 years ago • 1 comments

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

mdmoura avatar May 26 '15 20:05 mdmoura

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.

eddiegroves avatar May 28 '15 10:05 eddiegroves