ParseValidation

Vote:
 
I override ParseValidation(object source, ServerValidateEventArgs args) in my custom property to catch a value but it doesn't have no effect, it looks exactly the same as in the property weekday : public override void ParseValidation(object source, ServerValidateEventArgs args) { args.IsValid = false; int num1 = 0; CheckBoxList list1 = ((Control) source).Parent as CheckBoxList; foreach (ListItem item1 in list1.Items) { if (item1.Selected) { num1 |= int.Parse(item1.Value); } } base.Number = num1; args.IsValid = true; } What did I miss? Thanks!
#12836
Mar 25, 2008 18:35
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.