❔ [MVC/RazorPages] Why can't I access model data?
If I try printing to console the form data that I've
[BindProperty]
on the OnPost() method, it comes out empty. Why is that? How do I access this data?3 Replies
can u show code?
you usually put [BindProperty] on a property
Is it MVC or is it Razor Pages? If the former, then there's no
[BindProperty]
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.