Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange problem with validators
Message
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01305059
Message ID:
01305066
Views:
12
>Hi everybody,
>
>I'm working with the existing page. This page has two controls for working with the user information - Wizard to add a new user with 2 steps and a table with textboxes for editting user information.
>
>The editting part works great (shows all error messages right away when I move focus out of the controls).
>
>The Add new user doesn't show any validation messages until I click on the Next button and even then shows only one unrelated error message.
>
>I could not find the difference between Wizard validators and table textbox validators.
>
>Do you know what could be a problem and where should I look first?
>
>Thanks in advance.

This is working textbox + validator:
 <asp:TextBox ID="txtbFName" runat="server" ValidationGroup="vldEdtUser" Height="22px" Width="171px"></asp:TextBox>
   <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic"
   ErrorMessage="First Name Required" ControlToValidate="txtbFName" ValidationGroup="vldEdtUser"></asp:RequiredFieldValidator>
This one is not working:
<asp:TextBox ID="UserName" runat="server" ValidationGroup="CreateUserWizard1" Width="167px"></asp:TextBox> 
 <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
  ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="CreateUserWizard1" style="left: -175px; position: relative; top: 18px" Display="Dynamic" SetFocusOnError="True" Width="165px"></asp:RequiredFieldValidator>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform