onvalidating

OnValidating Event in a custom control

When does the OnValidate event fire in the lifecycle of a control? I'm creating a DateBox that will allow the user to enter a date in MM/DD/YYYY format (text) and need to verify that the date is in that format. It'll never be converted to a date (stored as string) but I would like to know the best time to validate that data (and provide...

LINQ to SQL partial class OnValidate Changeaction.Delete

OK here's my problem... I have a LINQ partial class: public partial class resp { public IEnumerable<RuleViolation> GetRuleViolations() { if (String.IsNullOrEmpty(respName)) yield return new RuleViolation("Responsibility name required", "respName"); yield break; } public bool IsValid { ...