469,641 Members | 1,129 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,641 developers. It's quick & easy.

validating groups of validators in 1.1

I noticed this nice new feature in 2.0:

a.. Validation Groups - Validation groups allow multiple forms on a page to
be separately validated.

Alas, I'm using 1.1 on a project at the moment and need to do exactly that.

Any best-method way to handle that with 1.1?

I have one ASP.net form on the page, but two seperate sets of fields I want
to validate depending on which button I click.

Is it just a matter of this?:

button click handler()
validator1.validate()
validator2.validate()
...
validator9.validate()

if validator1.isvalid AND validator2.isvalid AND... validator9.isvalid()
do your thing
end if
-Darrel
Apr 25 '06 #1
3 1088
As a followup, I tried just that (only validating the specific controls).

However, it still seems as if my reuired field validators are validating
even when I am not explicitely telling them to. Do those behave different
than the rest for some reason?

-Darrel
Apr 25 '06 #2
Darrel i don't think you can do what you want with ASP.NEt1.1
if i understand you i think your problem is that your validations are
clashing?
Try setting causesvalidation to false so they won't clash.
Patrick

"Darrel" <no*****@nospam.com> wrote in message
news:ec**************@TK2MSFTNGP03.phx.gbl...
As a followup, I tried just that (only validating the specific controls).

However, it still seems as if my reuired field validators are validating
even when I am not explicitely telling them to. Do those behave different
than the rest for some reason?

-Darrel

Apr 25 '06 #3
> Try setting causesvalidation to false so they won't clash.

aha! Excellent. Thanks!

-Darrel
Apr 25 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ante Perkovic | last post: by
7 posts views Thread by ani | last post: by
3 posts views Thread by Darrel | last post: by
4 posts views Thread by DotNetTechi | last post: by
4 posts views Thread by Joe Abou Jaoude | last post: by
8 posts views Thread by ShaneFowlkes | last post: by
76 posts views Thread by Michael Stemper | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.