Razor UI validation isnt working at all. When i go to post with empty text boxes it should say that this field is required but it just allows it to go through.
Trying to validate for the PageModel.
AddApplication.cshtml.cs
[DataType(DataType.Text)]
[BindProperty]
public string appName{get;set;}
AddApplication.cshtml
<input type="text" asp-for="appName" placeholder="Enter Application Name" class="form-control" style="width:25%">
<span asp-validation-for="appName" class="text-danger"></span>
I already have the services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
included in the start up so i don't understand why this isn't working.