T
tshad
I am trying to fire the CustomValidator when I leave the Email field.
Following is the code. It does PostBack, but the CustomValidator doesn't
seem to be firing.
<asp:TextBox AutoPostBack="true" Columns="45" ID="email"
runat="server" TextMode="SingleLine" />
<asp:CustomValidator
ControlToValidate="email"
OnServerValidate="ValidateEmail"
Font-Size="10"
Display="Dynamic"
Text="Not Valid !"
runat="server" />
<asp:RequiredFieldValidator
ControlToValidate="email"
Text="Email Required"
runat="server" />
<asp:RegularExpressionValidator ControlToValidate="email" Text =
"Invalid Email Address!"
ValidationExpression="\S+@\S+\.\S{2,3}" runat="server" />
What tells it to execute?
Thanks,
Tom
Following is the code. It does PostBack, but the CustomValidator doesn't
seem to be firing.
<asp:TextBox AutoPostBack="true" Columns="45" ID="email"
runat="server" TextMode="SingleLine" />
<asp:CustomValidator
ControlToValidate="email"
OnServerValidate="ValidateEmail"
Font-Size="10"
Display="Dynamic"
Text="Not Valid !"
runat="server" />
<asp:RequiredFieldValidator
ControlToValidate="email"
Text="Email Required"
runat="server" />
<asp:RegularExpressionValidator ControlToValidate="email" Text =
"Invalid Email Address!"
ValidationExpression="\S+@\S+\.\S{2,3}" runat="server" />
What tells it to execute?
Thanks,
Tom