I have specified a Javascript function for the "OnSuccess" event of an MVC ajax form. However, I do not want to carry out the "OnSuccess" event depending on certain conditions such as the Modelstate being invalid. How do I intercept and and check the modelstate of the patial view OR force acomplete failure and run OnFailure event?
AND THEN, CAN I SPECIFY A DIFFERENT UpDateTarget?