A short hint for ASP.NET developers... If you want your custom control to be validated by ASP.NET validators, simply add a "ValidationPropertyAttribute" attribute to your class definition. Like this:
[ValidationPropertyAttribute(”Message”)]
public class myCustomControl
{
//"message" property, which we want to be validated
public string Message
{
get { return “My Message”; }
}
}

1 comments:
This information is incomplete. More work needs to be done to accomplish validation of custom controls.
Post a Comment