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