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 has been archived by the owner on Dec 14, 2018. It is now read-only.
Seems having a property in my model called "Model" breaks the postback data. I removed the property and the postback works. Why would a property being named "Model" in my model break the postback action?
Is this a Bug or Feature request?:
Bug
Steps to reproduce (preferably a link to a GitHub repo with a repro project):
Description of the problem:
Did something change in AspNetCore that no longer allows you to use the parameter name "model" on POST actions?
If I do this, the DeviceModel property values are populated on postback:
However if I change the parameter name from "device" to "model" the property values are null.
I can't find anything saying that the parameter can't be called "model" and in previous MVC versions this worked fine.
Version of
Microsoft.AspNetCore.Mvc
orMicrosoft.AspNetCore.App
orMicrosoft.AspNetCore.All
:CompatibilityVersion.Version_2_1
The text was updated successfully, but these errors were encountered: