C
C#8mo ago
fedora¯

client-side form validation

I am trying to implement form validation in razor pages following https://learn.microsoft.com/en-us/aspnet/core/mvc/models/validation?view=aspnetcore-8.0#client-side-validation But I cannot get the error span to display, it simply focuses the invalid input element and doesn't allow me to submit the form. Anyone know what is going on here? :sobdado:
Model validation in ASP.NET Core MVC
Learn about model validation in ASP.NET Core MVC and Razor Pages.
2 Replies
friedice
friedice8mo ago
what's your code?
fedora¯
fedora¯OP7mo ago
I figured this out by now having a name attribute on the input completely breaks the validation messages for some reason removing them fixes everything
Want results from more Discord servers?
Add your server