CustomVaidator Examples

Hiall,

Want to know why do we need CustomValidators. Can you give me any real time example or implementation.

I want to know if it can help in any of my web pages.

Thank yall
AdibRahman77Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
orbulatCommented:
0
 
cottsakCommented:
CustomValidator might be helpful when your validation rule applies to many controls. for example, if you have 2 DropDownList's where the second depends on the SelectedValue of the 1st, a CuatomValidator may be used to validate a rule that applies to the selection of both controls.
0
 
sujithcnairCommented:
CUstom validator is helpful when u need conditional checking. Let us say you have 3 fields country state and city and if the country name entered is US then the user must enter state other wise he can leave it blank. In such a situation you can use custom validator and implement your custom logic through it.
0
 
nisarkhanCommented:
you can test the custom validator online
try this: http://www.x-code.com/vdaemon/samples/custom.php
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.