You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
FromRouteAttribute doesn't seem to work in Razor Pages #6402
changed the title [-]FromRouteAttribute doesn't seem to work in RazorPages RP[/-][+]FromRouteAttribute doesn't seem to work in Razor Pages[/+]on Jun 16, 2017
Activity
[-]FromRouteAttribute doesn't seem to work in RP[/-][+]FromRouteAttribute doesn't seem to work in RazorPages RP[/+][-]FromRouteAttribute doesn't seem to work in RazorPages RP[/-][+]FromRouteAttribute doesn't seem to work in Razor Pages[/+]pranavkm commentedon Jun 19, 2017
Is this on a GET request? We don't execute any model binders by default for GET requests. You have to explicitly annotate the property to state this:
sebastienros commentedon Jun 19, 2017
Then you can close if it's by design.
But do you mean it's model bound for some other verbs?
rynowak commentedon Jun 19, 2017
We're going to take some action here to make pages 100% consistent with controllers.
Making Pages Binding Consistent
Making Pages Binding Consistent
rynowak commentedon Jun 27, 2017
0ad9c7d