Trying to learn .Net 5 Core, Razor pages and EF core. I have a question about the Edit Page in the EF Core tutorial.
I cannot determine where the value for the “int id” parameter in the OnPostAsync method comes from. It is clearly the student id but I don’t see how it is provided. There is no use of “asp-route-id” in the code.
I have commented out the hidden Student.ID input and edited the url to include no student id information but the id parameter still contains a valid student id – where does it come from?
See images in attached pdf.
Thanks for the help.