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”; }
}
}
ASP.NET: validating custom controls
Sep 8, 2007
Like this post? Subscribe to my RSS, follow me on Twitter or check the about page
Labels:
asp.net,
development
Popular Posts
Blog Archive
-
▼
2007
(41)
-
▼
September
(12)
- Great software for helpdesk professionals
- Net Profile Switch 5.3
- AspNetForum: future plans
- iTunes killer and "top ten lies of lawyers"
- Switching Network Settings vs. "Alternate Configur...
- Blogger.com "Remember Me" never works
- How to find the right idea for your mISV
- Popurls
- White marketing lies
- France: the country
- France: the French
- ASP.NET: validating custom controls
-
▼
September
(12)


2 comments:
This information is incomplete. More work needs to be done to accomplish validation of custom controls.
Thanks a lot! That is the information i was looking for. It works!
Post a Comment