void OnErrorRaised(DTPickerControlEventArgs e) { if (oError != null) { oError(e); } }
protected override void OnValidating(CancelEventArgs e) { string message = CheckSecurityPermission(GroupUniqueID); if (message == string.Empty) { base.OnValidating(e); } else { this.Value = prevDt;// Assign the previous date time if user access denied.... DTPickerControlEventArgs cnt = new DTPickerControlEventArgs(); cnt.ErrorMessage = message; if (oError != null) { this.oError(cnt); } } }