Razor Pages does not map query parameter if it is called `page`
gyankov opened this issue · comments
Georgi Yankov commented
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
?
Patrick Westerhoff commented
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.