© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
Wrenpo

✅ MVC Core: Model Properties Not Passing to Controller Method

I have a model that I'm trying to have passed back to a controller method, but its properties are appearing as null. The correct POST method is being hit.

I have listed out each property in the form to POST back via
Html.HiddenFor(x => x.PropertyName)
Html.HiddenFor(x => x.PropertyName)
as I have done in many places within this project. They are still coming back null. Any ideas as to what may be going on?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Kinda new to MVC/C#/Razor - Need some help passing data from Model -> Controller
C#CC# / help
3y ago
MVC EF 5 - How to reference Model FK Properties?
C#CC# / help
4y ago
Passing DateOnly to controller
C#CC# / help
2y ago
Display many-to-many table data using view model in controller in ASP.NET Core MVC
C#CC# / help
2y ago