I have a website that uses one Action method which passes a pagename to the get action method. In the action method it finds the model item by the pagename and returns the relevant stuff to the view.
I have now created a POST action method for this because I need it in my contact page. I still need to find the model by page name and return it to the view however when the user submits the contact information I do a TryUpdateModel on my Enquiry model item and if not valid it returns the errors into the modelstate and the validation summary shows the errors but none of the information they submitted is re-rendered.
Is there anyway I can return the page model and get the textboxes to re-render what they had previously typed when the model fails?