T
tshad
I have the following on one of my Textboxes:
<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" />
<asp:CustomValidator
ControlToValide="email"
OnServerVAlidate="ValidateEmail"
Display="Dynamic"
Text="Email already on File"
runat="server" />
I also have Required validators on 2 Textboxes above this one. If I don't
enter anything, all the error messages line up. If I enter something, but
one that in invalidated, I get a " " where the RequiredValidator is.
This happens no matter what order I do it. If the Validator doesn't print a
message, it prints a space.
Is there some way to stop this? It just makes the page look out of line.
Thanks,
Tom
<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" />
<asp:CustomValidator
ControlToValide="email"
OnServerVAlidate="ValidateEmail"
Display="Dynamic"
Text="Email already on File"
runat="server" />
I also have Required validators on 2 Textboxes above this one. If I don't
enter anything, all the error messages line up. If I enter something, but
one that in invalidated, I get a " " where the RequiredValidator is.
This happens no matter what order I do it. If the Validator doesn't print a
message, it prints a space.
Is there some way to stop this? It just makes the page look out of line.
Thanks,
Tom