I have a simple strongly typed view, but I cant seem to update a textbox on my form after a post.
Here is my model:
public class Repair
{
public
Try this. You can put it in a base controller if you want. It's working well for me. It makes it so unobtrusive validation still works, yet values from the model show through properly as EXPECTED.
public class BaseController : Controller
{
public override void OnActionExecuted(ActionExecutedContext context)
{
ModelState.ToList().Select(x => x.Value).ToList().ForEach(x => { x.AttemptedValue = null; x.RawValue = null; });
// Do a bunch of stuff here if needed. Stuff like validation.
base.OnActionExecuted(context);
}
}