ServiceStack.Razor Model Binding on POST

I’ll pull together a repro but before I do I wanted to make sure this behavior isn’t expected. I’ve found that when posting a form, using HTML, and the response is not successful (i.e., validation fails) that the razor view’s model in not bound to. Thus, when my form is show it can’t be repopulated.

IIRC the error ResponseStatus is kept separately and you’d need to use the built-in Html.FormInput() controls to get validation binding, see the Server Razor example.

Although I’d recommend using ss-utils.js + Ajax to submit Razor forms which IMO is cleaner + more productive, see Client Razor Example which uses the ss-utils.js data binding methods.

Cool thanks will give a look. I’m probably wasting my time but wanted to make sure everything would work when JavaScript is disabled…