c# - What should I return when modelstate is invalid? -
i have partial view in layout file, partial view has form , server side validation. when form submitted , modelstate invalid should return?
something bold here:
1) don't want use javascript
2) want show modelstat errors in client side
thanks :)
you should add @html.validationsummary()
in place, want display errors
Comments
Post a Comment