
C Asp Net Core Binding Null In Controller Post Request List With When in the view i comment out the part of the elements (second loop, asp for hidden properties) inside each item in the list, i get it correctly. but if i don't comment the elements, although the html is apparently correct, the post request call arrives null without any item or elements. The trick is to use the "application x www form urlencoded; charset=utf 8" as your contenttype for the request. this way you don't need to create a class for a single string value.

C Asp Net Core Binding Null In Controller Post Request List With Just started a new project using core. added my web api controller and related method. using postman i created a json object and posted it to my controller method. bear in mind the json object matches the object param in the controller method exactly. in debug mode i can see the object, it is not null, the properties are there, however the prop values are defaulted to their. The default model binding will create a new somemodel for you. the default value for the string type is null since it's a reference type, so it's being set to null.

Javascript Ajax Post Data To Mvc Controller In Asp Net Core Always

C Post Data Is Null With Asp Net Api Controller Stack Overflow

C Asp Net Core Post Parameter Is Always Null Stack Overflow

C Asp Net Core 2 Jquery Post Data Null Stack Overflow