aspnet / Mvc

[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Razor Pages does not map query parameter if it is called `page`

gyankov opened this issue · comments

Bug

Description of the problem:

Currently sending a query parameter called page is not possible in a Razor Pages project. I am aware that the framework does not bind it correctly as page is a keyword. However, is there any workaround to send a query parameter called page?

Duplicate of #7876. Unfortunately, there’s no workaround for this. You will have to choose a different parameter name (e.g. p) or switch to controllers to make this work.