I want to change the CssClass to txtbox300CommentRED if validation in asp.net fails.
I cant find a way to do is this. Is it possible that we can tell RequiredFieldValidator or other Validators to change the CssClass class of txtFullName if validation fails?
<asp:TextBox ID="txtFullName" runat="server" CssClass="txtbox300Comment"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
How can I achieve this and what is hassle free or professional way to do it.
Help is appreciated.