Best way to support multiple forms in mvc3 with validation annotiation
问题 In an mvc3 project I want to have 2 forms on one page. One form is to register a user and the other one is to logon. There are two submit buttons. One to register, one to logon. In the model there are validation annotiation e.g. username is required, passwords must match and so on. The problem is, that the validation annotiation affect each other. So that when the register button is pressed, the validation for the logon username is invalid. I have tried to write partial views, or to do