Asp net validating multiple groups
Making use of Requirement and Handlers available on ASP. In this case, we are using windows authentication and AD groups to authorize user access, but, it can be easily other kind of authorization to fulfill your needs.
You can check the full example at github: https://github.com/devscopeninjas/asp-net-core-2-authorization-requirement https://odetocode.com/blogs/scott/archive/2018/02/20/https://docs.microsoft.com/en-us/aspnet/core/security/authorization/policies?
They are also useful for retaining the Text and Value of the Check Box across Form submissions.
The Submit Button has been assigned a j Query Click event handler.
The following example shows validation rules defined for the Trip object in Spring Air sample application: Validators can be grouped together.When the Submit Button is clicked, if the count of the selected (checked) Check Boxes is 0 then the error message is displayed and the Form submission is cancelled.