|
-
Aug 23rd, 2005, 01:56 AM
#1
Thread Starter
Hyperactive Member
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.
-
Aug 23rd, 2005, 02:01 AM
#2
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
-
Aug 23rd, 2005, 02:09 AM
#3
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|