ValidationGroup is a feature introduced in ASP. NET 2.0 This allows the developer to place controls in different groups and each group have its own set of validation controls.
Questions tagged [validationgroup]
43 questions
10
votes
4 answers
How to validate against Multiple validation groups?
I have two validation groups: parent and child
I have an add button that needs to only validate the child validation group which is easily done. The save button needs to validate against the parent and child validation groups, both client side and…

Jeremy
- 44,950
- 68
- 206
- 332
10
votes
2 answers
RequiredFieldValidator with ValidationGroup doesn't validate
Here's my markup:
Name:

Robotronx
- 1,728
- 2
- 21
- 43
8
votes
4 answers
OnClientClick fired before ValidationGroup
This is the code i'm using:
user1173169
5
votes
1 answer
Nested validation groups, Spring, JSR 303
I'm trying to do a nested validation in my Spring application.
public class Parent{
public interface MyGroup{}
@NotNull(groups = MyGroup.class)
private Child child;
// getters and setters omited
}
public class Child{
public…

LG_
- 1,999
- 1
- 16
- 21
5
votes
1 answer
ASP.NET like ValidationGroup using JQuery validate plugin?
We're trying to get the JQuery validate plugin working on our site but we've stumbled across a problem here.
On our site we have a login form available for the user on every page where we'd like to use the plugin to validate that the user has…

Martin Emanuelsson
- 97
- 1
- 7
3
votes
1 answer
how to validate only some of the elements in web page and not the others?
I programmed a web user control that basically lets the user choose whether she is a registered member or unregistered member, and to fill fields accordingly, i.e., if the user is member she is asked to provide her username and password and the sign…

Assaf
- 31
- 1
3
votes
3 answers
How can I replace a function name using JavaScript and have it be recognized as a function?
I am trying to replace the JavaScript onclick event handler in ASP.NET that is added to a button control when using validation controls. This is what is output into the HTML from ASP.NET in this scenario:

NightOwl888
- 55,572
- 24
- 139
- 212
2
votes
1 answer
Get the validationgroup that is used on a postback
I'm working with a legacy project in C# (.NET 2.0). In this project there are two validationgroups. One for custom login control and one for users to submit to a newsletter. The problem I ran into is that when a user submits to subscribe to a…

TheQui
- 31
- 4
2
votes
1 answer
Validation group being called by all buttons
I have a simple 2 tab panel setup with 2 validation groups. My problem is that my buttons fire both validation groups.
Loan Main
…

Mike
- 713
- 6
- 20
- 41
2
votes
3 answers
Different validations on same field based on active validation group
I am trying to validate a request object using Hibernate Validator.
As a simple example assume that the class of the object I am trying to validate has a B bObj field where B is another class that has a String name field .
For that reason, I have…

pirox22
- 892
- 1
- 14
- 30
2
votes
3 answers
ASP.NET Which validationgroup caused validation fail
There are 3 validation groups on the page
Group1
Group2
Group3
After validating the groups
Page.Validate("Group1");
Page.Validate("Group2");
Page.Validate("Group3");
Page.IsValid is false
How can I find out which group caused validation to fail and…

RubyWedge
- 157
- 6
2
votes
0 answers
Validate specific controls on each button click in Knockout js
var Inquiry = function (inquiry) {
var self = this;
self.InquiryDetails = ko.observable(inquiry.InquiryDetails).extend({ required: true });
self.MediaDate = ko.observable(inquiry.MediaDate).extend({ required: true });
…

Kalyan Chakravarthy S
- 716
- 2
- 7
- 20
2
votes
1 answer
JSF f:validateBean validationGroups not updating
Im am using bean validation with JSF2.0. I have a validation group which I specify depending on a few conditions and link to a attribute in the managed bean. The attribute is assigned when the page first loads and works correctly (i.e. when the form…

user1853440
- 21
- 2
2
votes
1 answer
How to get errors indexed by validation group
I handle a multi-tab form that is validated by one group per form-tab. When I get errors while binding request, I'd like to know the first tab (ie validation group) that is not valid.
Is it possible with Symfony 2.0, and how ?

AlterPHP
- 12,667
- 5
- 49
- 54
1
vote
1 answer
asp:CustomValidator not returning 'false'
Don't know what is wrong here. This is a page developed by someone else and I am trying to fix one of the issue.
Scenario:
ASP.NET site.
Login.aspx has and there are three validation groups.
Login.aspx.cs is a partial class of…

Anirudh
- 581
- 5
- 14
- 32