I have 2 levels of EF Core scaffolds:
- for shipment headers and
- for shipment detail lines.
From the header's ./Index page, there's a link that passes the shipment header's ID so that only that shipment's lines are displayed on its ./Index page. However, I can't get the shipment header's ID to pass in the link for the line's ./Create page, so the result is a constraint error when the line is saved.
When I attempt to use {id:int} in the asp-route-id for the create URL, it either only sends a translation of that text or reverts back to the URL for the ./Index.
@page "{id:int}"
<a asp-page="./Create/" asp-route-id="{id:int}">Create New</a>
Does anyone know how to pass the ID as a parameter to another HTML page?