3 writes to ModelState
System.Web (3)
ModelBinding\ModelBindingContext.cs (1)
27
ModelState
= bindingContext.ModelState;
UI\Page.cs (1)
551
ModelState
= ModelState,
UI\WebControls\ModelDataSourceView.cs (1)
1019
ModelState
= modelState,
10 references to ModelState
System.Web (10)
ModelBinding\ModelBindingContext.cs (1)
27
ModelState = bindingContext.
ModelState
;
ModelBinding\MutableObjectModelBinder.cs (5)
197
if (bindingContext.
ModelState
.IsValidField(modelStateKey)) {
201
bindingContext.
ModelState
.AddModelError(modelStateKey, validationResult.Message);
214
if (bindingContext.
ModelState
.IsValidField(modelStateKey)) {
215
bindingContext.
ModelState
.AddModelError(modelStateKey, ex);
222
if (bindingContext.
ModelState
.IsValidField(modelStateKey)) {
ModelBinding\TypeConverterModelBinder.cs (3)
18
bindingContext.
ModelState
.SetModelValue(bindingContext.ModelName, vpResult);
27
bindingContext.
ModelState
.AddModelError(bindingContext.ModelName, errorString);
31
bindingContext.
ModelState
.AddModelError(bindingContext.ModelName, ex);
ModelBinding\TypeMatchModelBinder.cs (1)
11
bindingContext.
ModelState
.SetModelValue(bindingContext.ModelName, vpResult);