Not sure if I understand all of your setup or not? I'm assuming you are using a Composite Control to accomplish this. I'm just trying to think thru the problem in my head and I think something like this would work for CreateChildControls:
protected override void CreateChildControls()
{
Controls.Clear();
valRequired = new RequiredFieldValidator();
textBox1 = new TextBox();
textBox1.ID = "Text1";
valRequired.ControlToValidate = textBox1.ID;
Controls.Add(textBox1);
Controls.Add(valRequired);
}
Does this help any? Let us know back here if you can't figure it out.
Jason