Hi,
I have upgraded my ASPNET Zero project into version 3.0.0. The problem is my MVC form validation not working.
I changed the following settings in my module PreInitialize(), still not working. Configuration.Modules.AbpMvc().IsValidationEnabledForControllers = false;
I also tried with [DisableValidation] attribute in my controller/action. It is also not working.
Please help.
4 Answer(s)
-
0
On my project, I added jquery-validate-unobstrusive.js and for the popup I was needed to trigger manual validation (in the init function) :
//Setup unobtrusive validation at client side if (!_$roomForm.data('unobtrusiveValidation')) { $.validator.unobtrusive.parse('form[name=RoomForm]'); _$roomForm.data('unobtrusiveValidation').validate({ ignore: "" }); }
-
0
Hi @azirrazzak,
I think, you are talking about client side validation. ABP does not do anyting related to MVC client side validation. The things you have changed are related to server side validation.
Do you have any javascript error on the client side ?
-
0
Hi,
Thanks for your reply.
Actually, I am using normal MVC structure for form submission (HttpPost). My form submits into Action method of Controllers (Not service). For client-side validation, I am using jquery.validate.unobtrusive.min.js scripts.
But, now my form submission is not working. When I click Submit button, nothing happens. That is the problem.
Please advise.
-
0
Thanks @azirrazzak, now it is more clear.
Do you have any javascript error on the client side ? If not, can you see the network request in google chrome's network tab ?