Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refill model after being submitted with errors. #4

Open
mdmoura opened this issue May 26, 2015 · 1 comment
Open

Refill model after being submitted with errors. #4

mdmoura opened this issue May 26, 2015 · 1 comment

Comments

@mdmoura
Copy link

mdmoura commented May 26, 2015

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

@eddiegroves
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants