Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Validation when Only One Field Is Required

$
0
0

Hi

I have a class where there are three fields First, Middle , Last

User is required to fill in at least one of the three field. I cannot put [Required] attribte to each of them because I need at least one of them

How can I add validation attribute to them or is there another way to do the validation

regards and thanks


Viewing all articles
Browse latest Browse all 9386

Trending Articles