Hey,
Ok I'm trying to use the .Net validator controls to do some validation I have a form set up with labels. Now Ideally if the user enters incorrect data I want the label to turn red. Without writing custom javascript how can I achieve this using the validator controls?
Assume this is the form,
I can do all the code for the validator including the reg expresions etc. I can get the validator working below the label but I need it to repalce the label on invalid entry.Code:<label> * Membership Number</label> <asp:TextBox ID="txtMembershipNumber" runat="server" CssClass="txtInput"></asp:TextBox> <label>* Company name: </label> <asp:TextBox ID="txtPassword" runat="server" CssClass="txtInput"></asp:TextBox>
Any help?




Reply With Quote