Questions tagged [modelstate]

The ModelState ( System.Web.MVC.ModelState ) is a component in the ASP.Net MVC Framework that manages the state of the Model through Views and Controller classes.

497 questions
-2
votes
2 answers

What should I return when modelstate is invalid?

I have a partial view in a layout file, my partial view has a form and some server side validation. when my form is submitted and modelstate is invalid what should I return? something is bold here: 1) I don't want to use javascript 2) I want to show…
-4
votes
3 answers

Show error "Email already exists" in registration form

How to show error "Email already exists" in registration form? I try to add error to model state - but error aren't displayed. For action which check email i have method which returns JsonResult. Maybe here is a problem why error not displayed? …
user3770925
  • 223
  • 2
  • 5
  • 12
1 2 3
33
34