why not ValidationGroup prop only available on Validators? How a control participated in multiple gr

R

Ryan Liu

I see both TextBox and RequiredFieldValidator has ValidationGroup property,
what does it mean for a TextBox has a ValidationGroup? Is it always
validated by some kine of Validator? So shouldn't only the Validators has
ValidationGroup property?

Another issues is how to make a control, like a textbox to be validated by
multiple validationgroup? For example, there are multiple buttons on a page,
there are one textbox need validated by all buttons, other controls just
need validated when one of the button is clicked.

Or look at other way, how can I button validate a group of controls plus
"defult" group? Can I button calsue multiple validation groups to be
verified?

If the ValidationGroup is only attched to Validators, not TextBox, then the
above problem can be solved, just specify multiple validators to the
TextBox, one belong to one group.

Regards,
Ryan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top