Home All Groups Group Topic Archive Search About
Author
29 Mar 2006 3:40 PM
Francis
Hi,
I have a repeater control which has a button in each row, I need the
button to submit data, when this happens I have a requiredfieldvalidator
on each row which will check that the row has been filled in, however,
when a button is clicked, all rows validate rather than just the row the
button has been clicked for.

Could someone give me a pointer how to sort it so only the row in which
the button was checked is validated? I have tried disabling the
validators then enabling them later.

Thanks in advance
Francis

Author
29 Mar 2006 10:16 PM
CaffieneRush@gmail.com
Hi,

Use validation groups. It allows each row (validator, textboxes,
buttons, etc) to be associated with a seperate validation group so that
clicking a button on one row would validate only that particular
validation group.

http://msdn2.microsoft.com/en-US/library/ms227424.aspx

Regards.