"IPGrunt" <me@privacy.net> wrote in message
news:Xn**********************************@130.133. 1.4...
"tshad" <ts**********@ftsolutions.com> confessed in news:uF$blU0AFHA.3120
@TK2MSFTNGP12.phx.gbl:
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
Have you tried laying out using tables?
They are in a table.
Here is more of a snippet with 3 of the objects:
************************************************** *************************
<tr>
<td align="right">Email Address: </td>
<td><asp:textbox id="txtEmail" TextMode="SingleLine" Columns="32"
runat="server" />
<asp:RegularExpressionValidator
ControlToValidate="txtEmail"
Font-Size="10"
Text = "Invalid Email Address!"
ValidationExpression="\S+@\S+\.\S{2,3}"
runat="server" />
<asp:RequiredFieldValidator
ControlToValidate="txtEmail"
Font-Size="10"
Text="You must enter an email"
runat="server" />
</td>
</tr>
<tr>
<td align="right">Password</td>
<td><asp:textbox id="txtPassword" TextMode="Password"
Columns="32" runat="server" />
<asp:RequiredFieldValidator
ControlToValidate="txtPassword"
Text="You must enter an password"
Font-Size="10"
runat="server" />
<asp:CustomValidator
ControlToValidate="txtEmail"
OnServerValidate="ValidateEmail"
Font-Size="10"
Display="Dynamic"
Text="Not Valid !"
runat="server" />
</td>
</tr>
<tr>
<td> </td>
<td><asp:CheckBox ID="SaveLogon" Runat=server
/> Remember Me?</td>
</tr>
************************************************** ***********************
Tom