Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 08, 2006 08:41 PM by aliem
May 08, 2006 08:41 PM|LINK
I have a custom control with 3 textboxes (one for day, month, year) and I can't get datevalidation to work on this composite control.
I can get basic "required" validation by adding RequiredFieldValidators for each textbox in the "InstantiateIn" method of the template class. But this won't work for datevalidation since the ID of the composite contol doesn't exist at this point.
I'm new to custom controls so I don't have a good understanding of the flow of calls and objects involved so I imagine that this should not be that hard.
I created a custom date validator object, so I just need to figure at which point in the creation of the control do I need to add my validator. I tried adding it as the last call to DataBind(), but this doesn't seem to work...