C
C#2d ago
Gary

hi guys good day can anyone help me with my MVC web app regarding simple validation on modal bootstr

I am trying to create my simple mvc that add a customer using bootstrap modal with different model request. and my main concern is i want to trigger the validation in the modal only it wont go to other page.
No description
No description
No description
No description
No description
No description
4 Replies
Angius
Angius2d ago
Well, your form does a POST request to somewhere So the page will reload one way or another Not 100% sure how that unobtrusive validation script works, especially when invoked later tbh No errors in the console?
Gary
GaryOP2d ago
Hi thank you for the response yes there is. i think its not working maybe i will remove that code. i dont know why my modal is gone
Gary
GaryOP2d ago
it targets to my same controller as the index list.
No description
Angius
Angius2d ago
Check the generated HTML and see if it really is the case It's a partial, so technically it doesn't have any actions it could refer to

Did you find this page helpful?