Sunday, March 11, 2012

Validators in combination with Repeater control

I wud suggest u to set the ControlToValidate property on the server side by doing the YourDataGridName.FindControl(RequiredFieldValidator1) and see if that makes the behaviour any different.

hth


As suggested in the previous post, you should be able to programmatically
update the the validator's ControlToValidate in the repeater's ItemCreated
event handler. You will need to check the ItemType and can reference the validator control and the control to validate using the item's FindControl method.

~dpl

No comments:

Post a Comment