As we know, "ControlToValidate" is a property that can get controltoValidate Id from custom validator, However, if you use master page, then the "controltoValidate" return value may not be the real ID that display in html page.
In this case, we can use
CustomValidator cv = (CustomValidator)source;
var rcb = cv.FindControl(cv.ControlToValidate) as XXXControl;
to get the real control that been validated.