Question

I have a pod on my page that contains a form.

I have used this pod in a similar way to the following:

@Html.Action("Pod","Home")

There is some business rule checking in the Pod's HttpPost action which handles the form post. If this business rule fails, I add an error to the model state.

The problem is, that when the business rule fails to validate. I return a View from the pod action, which shows just the pod on a blank page.

How can I correctly reuse a form like this and still have server side validation of this business rule (requires a db hit to validate)?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top