471,074 Members | 1,430 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,074 software developers and data experts.

How To Execute two Different Sets of "requiredfieldvalidator"

RSB
Hi all,
i have this form with the NewText Fields and then the Editable datagrid for
all the existing Records. So i have to Buttons "Add New" and "Save Changes"
and there is a Set of Validations for "Add New" say Validation1 and
Validation2.
and there is a Set of Validations for "Save Changes" say Validation3 and
Validation4.
Now what happens is when i click on the "Save Changes" for the GridEdit. it
still check the Validation1 and Validation2 .. which is not i want..
So how do i ignore those checks. Or how do i make sure that only those
checks are getting execute which i want.
Thanks

RSB
Nov 18 '05 #1
2 1035
Two ways, neither of which I think you'll like

a- Wait for asp.net 2.0 and Validation Groups
b- Put all validators for a certain group within a panel, and make this panel visible/invisible. Essentially only showing one grouping of buttons/inputs at a time. Of course if you have an "add new" and "save changes" really only one of these should be displayed at a time anyway.

Hope this helps,
--Michael

"RSB" <rs*****@hotmail.com> wrote in message news:fP****************@news.cpqcorp.net...
Hi all,
i have this form with the NewText Fields and then the Editable datagrid for
all the existing Records. So i have to Buttons "Add New" and "Save Changes"
and there is a Set of Validations for "Add New" say Validation1 and
Validation2.
and there is a Set of Validations for "Save Changes" say Validation3 and
Validation4.


Now what happens is when i click on the "Save Changes" for the GridEdit. it
still check the Validation1 and Validation2 .. which is not i want..


So how do i ignore those checks. Or how do i make sure that only those
checks are getting execute which i want.


Thanks

RSB

Nov 18 '05 #2
There is a third way. The "Validation Groups" concept is the right idea. It
happens to be available today in third party products. I wrote
"Professional Validation And More" (http://www.peterblum.com/vam/home.aspx)
to overcome the numerous limitations of the Microsoft validators (for a list
of those limitations, see http://www.peterblum.com/vam/valmain.aspx.) It
includes validation groups. It's easy to convert your page to my validators
because I include a Windows app to handle the conversion.

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Raterus" <ra*****@spam.org> wrote in message
news:eJ**************@TK2MSFTNGP09.phx.gbl...
Two ways, neither of which I think you'll like

a- Wait for asp.net 2.0 and Validation Groups
b- Put all validators for a certain group within a panel, and make this
panel visible/invisible. Essentially only showing one grouping of
buttons/inputs at a time. Of course if you have an "add new" and "save
changes" really only one of these should be displayed at a time anyway.

Hope this helps,
--Michael

"RSB" <rs*****@hotmail.com> wrote in message
news:fP****************@news.cpqcorp.net...
Hi all,
i have this form with the NewText Fields and then the Editable datagrid for all the existing Records. So i have to Buttons "Add New" and "Save Changes" and there is a Set of Validations for "Add New" say Validation1 and
Validation2.
and there is a Set of Validations for "Save Changes" say Validation3 and
Validation4.
Now what happens is when i click on the "Save Changes" for the GridEdit. it still check the Validation1 and Validation2 .. which is not i want..
So how do i ignore those checks. Or how do i make sure that only those
checks are getting execute which i want.
Thanks

RSB

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.