Skip to content

Update Edit Page URL to Use Query Parameter for ID. #34642

@Daan5556

Description

@Daan5556

Description

The url https://localhost:5001/Movies/Edit/3 on the page should be https://localhost:5001/Movies/Edit?id=3.

When you want to supply the id to the details page you use the /, but on the edit page you supply the id by a query param.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/da1?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/tutorials/razor-pages/da1.md

Document ID

6886d687-d6bf-2652-4583-5de7b7353e45

Article author

@wadepickett

Metadata

  • ID: f71b0095-5175-f2e8-1db2-a800e0f77ce2
  • Service: aspnet-core
  • Sub-service: tutorials

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions