There are two ways to integrate custom server controls with a validation framework.
(1) server side: you need to add ValidationPropertyAttribute to the class, so framwework check knows what to look at when checking:
[ValidationProperty("SelectedDate")]
public class MyDateControl : WebControl
{
public DateTime? SelectedDate { get { ... } set { ... } }
}
(2) , , , . - < input type = "hidden" > - HTML. . , , , JavaScript , .
, . , CustomValidator.