-1
I’m with a system that all forms (Views) are in Modal Bootstrap.
The View Index loads all Partialview. Below the Index:
By clicking the Register button, for example, a Javascript function accesses Action Create via AJAX, and this in turn returns to Parialview '_Create':
Javascript:
Action:
The modal with the registration form is loaded on the screen:
When submitting the form by clicking Save, an internal check is made if the name already exists:
In a normal, static form, this would work beauty. But in this case Partialview is returned as a static page, and without Layout:
Someone has come across this scenario and could help me?
You are submitting the page from a form on the page or via jquery with ajax?
– Rafael Chagas
From a form, button Submit. I thought of creating an ajax method to verify the existence first, and according to the return submit the form. But it’s another thing I don’t know yet how it works. Submit the form in Javascript.
– Vitor