DEV Community

Discussion on: Filter a List in Razor Pages .net core 2.2

Collapse
 
cgnguyen profile image
Gia Nguyen

It seems that my model binding doesn't work. I've set it to an object property that contains another property. They all have public getters and setters. But the values are null when debugging. I've tried to use the BindProperty attribute on the object as well as the property that has to be accessed. Is there something else I'm forgetting?

Collapse
 
zoltanhalasz profile image
Zoltan Halasz

This has to be within an Asp.net core Razor Pages project (not MVC). And, myBillingCodes, myEmployees, myCateg has to be lists that are populated (from a database for example).