I
ibiza
Hi all,
I have a small question concerning asp.net 2.0 validation groups. I
have this (simplified) situation :
Name Value
_____ _____
|_____| |_____|
_____ _____
|_____| |_____|
_____ _____
|_____| |_____|
So I have 6 textboxes, that goes in pair by row. I'd like the user to
choose whatever boxes he wants to fill, meaning that he can save either
one, two or three name-value pairs. The problem is, a name cannot be
saved without a value and vice-versa. I thought asp.net 2.0 would solve
my validation problems with its new "groups" feature, but I can't
manage how to tell him that "if the user fills one box, the other
besides it must also be filled". I tried many different ways of doing
this, right now I ended with 6 requiredfieldvalidator and textboxes
aside set with the same ValidationGroup, for a total of 3 different
ValidationGroup-s. Can't I programmatically set which ValidationGroup I
want to use just before Page.Validate or anything like this that would
do the job?.....
thanks for your feedback,
ibiza
I have a small question concerning asp.net 2.0 validation groups. I
have this (simplified) situation :
Name Value
_____ _____
|_____| |_____|
_____ _____
|_____| |_____|
_____ _____
|_____| |_____|
So I have 6 textboxes, that goes in pair by row. I'd like the user to
choose whatever boxes he wants to fill, meaning that he can save either
one, two or three name-value pairs. The problem is, a name cannot be
saved without a value and vice-versa. I thought asp.net 2.0 would solve
my validation problems with its new "groups" feature, but I can't
manage how to tell him that "if the user fills one box, the other
besides it must also be filled". I tried many different ways of doing
this, right now I ended with 6 requiredfieldvalidator and textboxes
aside set with the same ValidationGroup, for a total of 3 different
ValidationGroup-s. Can't I programmatically set which ValidationGroup I
want to use just before Page.Validate or anything like this that would
do the job?.....
thanks for your feedback,
ibiza