D
David
I need help with CustomValidator in 1.1. I added the CustomValidator
control and code as per the doc., (See below) However, the code is
never executed. Is there an extra switch or setting to force the
OnServerValidate code to execute?
<asp:CustomValidator id="CustomValidator1" runat="server"
ErrorMessage="CustomValidator" ControlToValidate="TextBox1"
OnServerValidate="val01"></asp:CustomValidator></P>
protected void val01(object source,
System.Web.UI.WebControls.ServerValidateEventArgs args)
{
args.IsValid = false;
}
control and code as per the doc., (See below) However, the code is
never executed. Is there an extra switch or setting to force the
OnServerValidate code to execute?
<asp:CustomValidator id="CustomValidator1" runat="server"
ErrorMessage="CustomValidator" ControlToValidate="TextBox1"
OnServerValidate="val01"></asp:CustomValidator></P>
protected void val01(object source,
System.Web.UI.WebControls.ServerValidateEventArgs args)
{
args.IsValid = false;
}