Let's take the following simple site as an example:
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox> <asp:RequiredFieldValidator id="RequiredFieldValidator1" runat="server" ErrorMessage="Required!" ControlToValidate="TextBox1"> </asp:RequiredFieldValidator>
Now, I would want the
TextBox1 to change its
BackColor to yellow when ever the validation has failed. Is there a simple way to accomplish this?