79715661

Date: 2025-07-26 12:22:57
Score: 1.5
Natty:
Report link

In .NET Core Razor Pages, an anchor tag (<a>) inside a <form> can trigger OnPost unexpectedly if it behaves like a submit button. To fix, ensure your <a> is outside any <form> tag or add type="button" on buttons, or use href="#" with onclick for navigation to prevent form submission.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yash Smith