Posted on: 7/6/2014 11:49:03 AM | Views : 353

On validation failed i m able to change the background color of the textbox .. but the issue is that how i can reset the background color to none after filling the value in the textbox

let say i have  a textbox in a page and i clicked on button .. so page will not be submit to server because of requiredfield validator and background color of textbox changed to red ... .. now i have entered some value in the textbox but background color of the textbox should be set to none

please help me to fix this problem

Thanks
<style type="text/css"> body { font-family:Arial; font-size:10pt; } .ErrorControl { background-color: #FBE3E4; border: solid 1px Red; } </style> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="Require ...

Go to the complete details ...