Blazor Form Validation
Creating an input forms is needed for just about every application. Creating a form in Blazor is fairly strength forward using the Blazor components and the ASP.Net Core Data Annotations on your model. The cool part is that the data annotations on your model is the same both in the client and on the server. Another benefit of Blazor. For this post we will be modifying the standard Weather forecast sample that ships as one of the pages in the project templates. We will be changing it cities with their temperatures. I will be using this project for the next couple of blog post, I will just be adding new features to it. Getting Started To get started building input forms, we will create a model and add our data annotations to it. We have several simple fields and data annotations that deal with required and max length. These should be common. public class CityWeatherInfo ...