Results 1 to 3 of 3

Thread: Other custom validation methods

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309

    Other custom validation methods

    Hello,


    Long time I thought, that microsoft validation controls are enough in most situations. Now I came to nightmare, where I need your help.

    Maybe you can suggest how to create such forms with validations:

    (some textboxes, with validations)


    Horizontal and vertical Validations groups
    ("V" - means required field or other validation)

    ------------------------------
    ------------------------------
    Name V

    Surname V
    ------------------------------
    Address V

    Phone V V

    Email V
    ------------------------------
    ------------------------------


    This form with custom validations means (if validations is "Required field validation):

    User must fill:

    Name or Surname,
    also
    Address and phone
    or
    Phone and Email.

    In other words I need validations group to check if any of them match.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Other custom validation methods

    You can use the CustomValidator control which performs the .value check for the specified groups of textboxes and based upon that, return true or false.

    Check out MSDN:

    http://msdn.microsoft.com/library/de...torcontrol.asp

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Location
    Europe, Lithuania
    Posts
    309

    Re: Other custom validation methods

    I don't understand how to solve this using CustomValidator. This control validates only one control.

    I need something like:

    Every control have multiple validation controls (group of validations).
    Then page perform validation it check if entered date matches first column of validation, if no - than second and so on. If any of validation group maches it return page.valid = true, otherwise it return error and discription what data is entered incorrectly.

Posting Permissions

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



Click Here to Expand Forum to Full Width