Hi! My app uses Razor Pages and I'm trying to do the following:
1. Open a modal dialog, which is itself a Razor Page with a model.
2. Submit from that modal dialog and call the OnPost method in its model.
When I click submit, it simply closes the dialog and never calls the OnPost method.
Here's my code:
First, the calling page, Customer.cshtml:
It has a trivial page model, which I will not include here.
Then the Modal Dialog Page, AddCustomer.cshtml:
and its non-trivial model, which contains the OnPost that is never being called: