473,785 Members | 2,219 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

2 seperate validation groups on 1 page?

This is what I am trying to do
*************** *************** ***form1******* *************** *
Control 1 required field validator 1
Control 2 required field validator 2
Submit button 1 (works only if control 1 and 2 inputs are correct does not check control 3 or 4 input)

Control 3 required field validator 3
Control 4 required field validator 4
Submit button 2 (works only if control 3 and 4 inputs are correct, does not check control 1 or 2 input)
*************** *************** ***form1end**** *************** *
but instead button 1 and button 2 check all controls for validation.
thanks
--
Paul G
Software engineer.
Nov 18 '05 #1
3 1260
This is easy to do exactly as you described in ASP.NET 2.0.
Unfortunately that's not released until next year.

Until then you'll have to do some custom validation coding to implement such
as situation.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:FC******** *************** ***********@mic rosoft.com...
This is what I am trying to do
*************** *************** ***form1******* *************** *
Control 1 required field validator 1
Control 2 required field validator 2
Submit button 1 (works only if control 1 and 2 inputs are correct does not check control 3 or 4 input)
Control 3 required field validator 3
Control 4 required field validator 4
Submit button 2 (works only if control 3 and 4 inputs are correct, does not check control 1 or 2 input) *************** *************** ***form1end**** *************** *
but instead button 1 and button 2 check all controls for validation.
thanks
--
Paul G
Software engineer.

Nov 18 '05 #2
"=?Utf-8?B?UGF1bA==?=" <Pa**@discussio ns.microsoft.co m> wrote in
news:FC******** *************** ***********@mic rosoft.com:
but
instead button 1 and button 2 check all controls for validation.
thanks


You'll have to use a custom validator for this situation. You can't use the
built in validators.

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #3
ASP.NET 2.0 is in Beta 1 right now. Its expected to be released in the first
half of 2005.

There are several commercial solutions that solve this problem. Mine is
Professional Validation And More (http://www.peterblum.com/vam/home.aspx).
It provides the same 'validation groups' model as ASP.NET 2.0 has. It also
supports many more browsers on the client-side and has 22 validator
controls.

There are numerous limitations in Microsoft's validation. I put together a
list to help others as they plan their validation at
http://www.peterblum.com/vam/valmain.aspx.

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

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:50******** *************** ***********@mic rosoft.com...
ok thanks for the information. Any idea when ASP.NET vers 2.0 is comming out and will there be a BETA version released for testing? --
Paul G
Software engineer.
"Steve C. Orr [MVP, MCSD]" wrote:
This is easy to do exactly as you described in ASP.NET 2.0.
Unfortunately that's not released until next year.

Until then you'll have to do some custom validation coding to implement such as situation.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Paul" <Pa**@discussio ns.microsoft.co m> wrote in message
news:FC******** *************** ***********@mic rosoft.com...
This is what I am trying to do
*************** *************** ***form1******* *************** *
Control 1 required field validator 1
Control 2 required field validator 2
Submit button 1 (works only if control 1 and 2 inputs are correct does
not check control 3 or 4 input)

Control 3 required field validator 3
Control 4 required field validator 4
Submit button 2 (works only if control 3 and 4 inputs are correct,
does not check control 1 or 2 input)
*************** *************** ***form1end**** *************** *
but instead button 1 and button 2 check all controls for validation.
thanks
--
Paul G
Software engineer.


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1551
by: Matt Mercer | last post by:
Hi, My first post here. I am a self-taught, very "green" web developer. It is not the main focus of my job but required from time to time. I am developing a web application that logs security incidents for my company. Here is a little background on how it works. I am using ASP ..net and VB. The user first submits a new incident which has several required and not required fields related to the incident. The new incident is written to a...
3
2831
by: john morales | last post by:
Hi guys, I have a problem and i know there must be a solution for this as it is such a basic common practice in asp.net development. Scenario: i have many webforms in a site, most with two different custom controls, one is a login module, the other is a generic data entry module. When there are no validation controls on the page there is no problem. But when the the data entry module has validation controls, the login module triggers...
1
1390
by: Shaker | last post by:
For simplicity, I have on one form: -textbox1/Requiere For validation1 / submitbuttun1, -textbox2/Requiere For validation2 / submitbuttun2, I have two submit buttons on an ASP.Net page with two textboxes and two require for validation controls per textbox. In summary I want to group the fields on the page per submit action, and not on any action.
4
2976
by: David Colliver | last post by:
Hi all, I am having a slight problem that hopefully, someone can help me fix. I have a form on a page. Many items on the form have validation controls attached. Also on this form are linkbuttons which must not cause validation. I have found a setting "causeValidation" to disable the validation. Also on the page, I have a datagrid that I will edit lines on. I can click
1
1503
by: MattC | last post by:
I have a user control that contains several requiredFieldValidators. The page the control sits in has other RequiredFieldValidators. On submitting the form all the validators on the page fire and correctly validate. The validators in the control seem to validate but do not return true/IsValid as so my form is not submitted. I would like to do this ClientSide, the only resolution I can find is to perform the validation for the...
4
2711
by: ibiza | last post by:
Hi all, I have a small question concerning asp.net 2.0 validation groups. I have this (simplified) situation : Name Value _____ _____ |_____| |_____| _____ _____ |_____| |_____|
1
3826
by: misiek | last post by:
Hi all. I have following problem: I have some user control called smallUserContrl, in which I have two RangeValidator controls. I set their ValidationGroup property to smallUserControlGroup. Also I have another user control called bigUserControl, in which I use smallUserControl. BigUserControl also has some validator, which has ValidationGroup property set to bigUserControlGroup.
1
3195
by: brantman | last post by:
Here is a question that needs to be revisited. I noticed that there are more that a few posts about this in this group and in custom controls. Here is the problem: When inheriting from a webcontrol, say textbox for example, and implementing the IValidator interface to make the control self-validating, the control fails to participate in validation groups. Using reflector, it is easy to see why; the page.validator casts all the controls in...
2
1440
by: moondaddy | last post by:
asp.net 2.0 I have a page with a tab control on it. Each tab has a different user control on it. each user control is used for different data entry (like separate data entry forms) and has its own validation controls and validation summary control. When I'm on the first tab, it uses all the validation control on the other tab as well. How can I keep all the logic for the validation separate for each UC as if they were their own pages?
0
10346
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10157
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10096
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5514
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.