Field Validator

Results 1 to 2 of 2

Thread: Field Validator

  1. #1
    Join Date
    Dec 1969

    Default Field Validator

    I need to compare text boxes and make sure at least one of them are not null. I am not sure how to do this with the .net built in validators. Can someone tell/show me how to do it?<BR><BR>Thanks in advance.<BR>

  2. #2

    Default RE: Field Validator

    Quick (and maybe dirty):<BR><BR>Add a required field validator for each one, disable client-side validation, loop through the validators on postback , if you find one that IsValid(a value was given) the set the rest to valid.<BR><BR>Note that the values will be blank/String.Empty, not "null"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts