.input-validation-error to a textbox when the form is redisplayed for failed value
问题 I've asked a question to know why, in my application, textboxes are being highlighted (i.e. red border and pink-shaded backgroung are applied to the textbox) when I use modelbinding to validate the model ( TryUpdateModel() ) but not when I validate manually ( ModelState.AddModelError ). It has been 2 days now without any answer. I've tried every thing myself without succes. So, I decide to ask the question differently. The way I understand IT, here's how ModelBinding treats a request.