Morning everyone,
I hope someone out there can help me here as I'm sure I'm slowley going mad! I'm trying to get a CustomValidator working on my CompositeControl. The control is being added fine during the CreateChildControls:
titleVal = new CustomValidator();
titleVal.Display = ValidatorDisplay.Dynamic;
titleVal.ServerValidate += new ServerValidateEventHandler(_titleValidate);
titleVal.ControlToValidate = titleList.ID;
this.Controls.Add(titleVal);
My _titleValidate is just about empty at the moment - i'm simply trying to see if it is ever called:
protected void _titleValidate(object source,ServerValidateEventArgs args)
{
string strA = "";
}
Can anyone point me in the correct direction? I've put a break point on strA which is never reached. What am I missing?
Thanks all.
Rob
I hope someone out there can help me here as I'm sure I'm slowley going mad! I'm trying to get a CustomValidator working on my CompositeControl. The control is being added fine during the CreateChildControls:
titleVal = new CustomValidator();
titleVal.Display = ValidatorDisplay.Dynamic;
titleVal.ServerValidate += new ServerValidateEventHandler(_titleValidate);
titleVal.ControlToValidate = titleList.ID;
this.Controls.Add(titleVal);
My _titleValidate is just about empty at the moment - i'm simply trying to see if it is ever called:
protected void _titleValidate(object source,ServerValidateEventArgs args)
{
string strA = "";
}
Can anyone point me in the correct direction? I've put a break point on strA which is never reached. What am I missing?
Thanks all.
Rob