C
C#2y ago
Messiah

❔ [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
TheRanger
TheRanger2y ago
can u show code? you usually put [BindProperty] on a property
Angius
Angius2y ago
Is it MVC or is it Razor Pages? If the former, then there's no [BindProperty]
Accord
Accord2y ago
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.

Did you find this page helpful?