C When Call Api Using Ajax Jquery Validation Annotation Not Working

C When Call Api Using Ajax Jquery Validation Annotation Not Working What you can do is, set a form id and and write one additional function and use from validation attribute in jquery by using $("#yourformid").valid() in order to keep all existing code as it is and its easy and less change required. In this tutorial, we have learned on using jquery ajax with model validation to submit a form in asp mvc. this is just a simple example, but hopefully, this can help you understand how client side validation is done using ajax.

C When Call Api Using Ajax Jquery Validation Annotation Not Working When using an asp mvc application and making an ajax jquery call to an api to prevent the url from changing after clicking the submit button, the validation annotation modelstate is not working as expected, and the question is how. Your api call doesn't return any data. you should change to return some response. the code appears to update the passed model, but this does not send any information back to the ajax caller. also the api update the viewbag, but a viewbag values is only used if the action return a view.
When Call Api Using Ajax Jquery Validation Annotation Not Working
When Call Api Using Ajax Jquery Validation Annotation Not Working

How To Get More Details Regarding Jquery Ajax Error Stack Overflow
Comments are closed.