MVC2: Validate PartialView before Form Submit of Page containing Partial View?

Your partial view method will be called when the page is rendered, not when the page is posted. The only action that will be called when the post is done is the action specified in BeginForm. The validation will happen in the ModelBinder -- assuming you're using DataAnnotations for your model.

Any part of your model that is represented by inputs in the partial view will be validated along with the rest the model during binding. If you are handling the validation manually, then you will need to validate all of the parts of the model in the action that is being invoked on the post.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions