Are you saying that you are submitting the form via ajax? Because otherwise if you are doing a standard post back to the server the validation should trigger immediately and your submit() binding should never happen (so there's no need to "hide" your loading
message), unlike your click() binding which will happen whether the form is valid or not.
RogerH
Member
354 Points
73 Posts
Re: Html.ValidationSummary Question
Apr 26, 2012 09:13 PM|LINK
Are you saying that you are submitting the form via ajax? Because otherwise if you are doing a standard post back to the server the validation should trigger immediately and your submit() binding should never happen (so there's no need to "hide" your loading message), unlike your click() binding which will happen whether the form is valid or not.