473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 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 1085
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
1
by: Anup | last post by:
Hi Group, In my project I m using "RequiredFieldValidator" for the validations of text box, There are two TextBox, say "txtBox1" and "txtBox2" now I want to make either of TextBox mandatory,...
3
by: Bart Van Hemelen | last post by:
Here's what I'm trying to accomplish: I get a number from another page that indicates the number of members. The page I want to build -- actually it's not a page, but a UserControl -- needs to...
4
by: Chicagoboy27 | last post by:
All I am trying to find a solution for removing the ?returnUrl if a user is not authenticated. I want to be redirect an unauthenticated user to the login.aspx less the returnUrl. Once they log...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.