I have certain panels on my page that are hidden under certain circumstances.
For instance I might have a \'billing address\' and \'shipping address\' and I dont wan
Make sure the fields you don't want validated are not posted to the action. We only validate the fields that were actually posted.
Edit: (by questioner)
This behavior has changed in MVC2 RC2 :
Default validation system validates entire model The default validation system in ASP.NET MVC 1.0 and in previews of ASP.NET MVC 2 prior to RC 2 validated only model properties that were posted to the server. In ASP.NET MVC 2, the new behavior is that all model properties are validated when the model is validated, regardless of whether a new value was posted. Applications that depend on the ASP.NET MVC 1.0 behavior may require changes. For more information about this change, see the entry Input Validation vs. Model Validation in ASP.NET MVC on Brad Wilson’s blog.