Net Profile Switch, Macro Recorder, Asp.Net-Forum, Help-Desk. JitBit Software
products try now buy now support about blog

Sep 8, 2007

ASP.NET: validating custom controls

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:

Anonymous said...

This information is incomplete. More work needs to be done to accomplish validation of custom controls.

Post a Comment