Search code examples
asp.netrequiredfieldvalidator

Exclusive RequiredFieldValidation among multiple Textboxes


I'm developing a web form which consists of a set of TextBoxes, as per the system requirements, the users are requested to fill-up AT LEAST ONE of those TextBoxes. If RequiredFieldValidation is used, how can I achieve such requirement? Please kindly advise.

Thank you very much! William


Solution

  • You can use CustomValidator, you can refer to this question:

    asp.net validate textbox - at least one text box must have data in