asp core form tag helpers but the router has dynamic route
i have this form
now the endpoint it points to is below
but for some reason it points to the wrong route, the generated html is
as you can see it points to
/DocumentGenerations/GenerateCheque
which is wrong, but this is probably becaus of the {payrollHistoryId}
in the route, how would i fix this?4 Replies
I don't think the form helper takes
asp-route-<param>
attribute, it's only for links
I'd rather send the payrollHistoryId
with the form, as a hidden field perhaps
To a non-dynamic routeyeah i figured
alright i guess i just have to write the dynamic route
Or, again, don't